Граф коммитов

2243 Коммитов

Автор SHA1 Сообщение Дата
mccabe%netscape.com b83e22e2ea Fix to 23532. Check validity of JS_ARENA_ALLOCATE call before using it as an argument of memcpy in JS_ArenaGrow.
Thanks to wyeung@real.com for noticing we were being unsafe here and suggesting the fix.
2000-04-21 09:25:43 +00:00
brendan%mozilla.org c4dc0a590b Spruce up a couple of comments. 2000-04-21 01:49:49 +00:00
brendan%mozilla.org c65d2d6a93 Functions that use unqualified __parent__ or __proto__ must be heavyweight (36625, r=shaver). 2000-04-21 01:47:20 +00:00
rginda%netscape.com d6c8ec2a89 Add nsIScriptError.idl. Build it here rather than back in xpfe/components/console. Checkin by McCabe, on rginda's mac. 2000-04-21 00:57:27 +00:00
rogerl%netscape.com ca67259713 oops 2000-04-21 00:46:48 +00:00
rogerl%netscape.com 5e238bd7a5 Added labelled statements, fixed some VC++'isms 2000-04-21 00:37:51 +00:00
rginda%netscape.com 7615ee9226 icodegenerator.cpp
add m prefix to base and offset label members

interpreter.cpp,h
dual license
wrap interpret in a Context class
add RETURN_VOID case

js2.cpp
update to use context class
remove #if 0 code that'll probably never be used anyway.

jstypes.h
add defineProperty/function to JSObject

vmtypes.h
regerated opcode classes:
  added RETURN_VOID, removed LOAD/SAVE_VAR
  reverted bacl to the smaller print function (thanks to RETURN_VOID)
  fixed branch printing issue
  inherit print() from super if possible

tools/gencode.pl
generate smaller print functions again
don't generate print function if superclass can take care of it.
2000-04-21 00:04:14 +00:00
norris%netscape.com 0bca489fe4 Clean up new methods. 2000-04-20 23:08:07 +00:00
beard%netscape.com d7ad5021eb Simple dependency tracking with make depend target. 2000-04-20 23:02:19 +00:00
rogerl%netscape.com 215b1e19c7 Added ASSERT cases to FixNext child handling. 2000-04-20 23:00:37 +00:00
beard%netscape.com 30971c4c45 Simple dependencies list. Rebuilt with make depend target. 2000-04-20 22:58:23 +00:00
norris%netscape.com 35a0af1014 Fix build error. 2000-04-20 22:36:46 +00:00
norris%netscape.com e8b7e89546 Subject:
contextClassloader problem in ScriptRuntime.java
   Date:
        Tue, 11 Apr 2000 09:45:36 -0400
   From:
        "Howard Lin" <howard@softcom.com>
     To:
        "Norris Boyd" <norris@netscape.com>
    CC:
        "Andrew Wason" <aw@softcom.com>




Hi, Norris, we are trying to create a Java class in JavaScript. When security manager is on, everything works fine. But when security
manager is off, we got an error saying the "... is not defined". The problem is that in ScriptRuntime.java, when security is on,
getContextClassLoader is null due to SecurityException and Class.forName is used to find the class, which works fine. When security
is off, ContextClassLoaderMethod is invoked to find the class. Since we use a separate thread to load third party jar files,
ContextClassLoaderMethod will throw a ClassNotFound exception.

To illustrate this problem, I wrote a simple applet, evaluating a simple js file in its paint method, which is running on a separate thread.
When security is off, I got the following:

ReferenceError: "Global" is not defined.
        at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:
494)
        at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java, Compile
d Code)
        at org.mozilla.javascript.Interpreter.interpret(Interpreter.java, Compil
ed Code)
        at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:
67)
        at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:
54)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:739)
        at test.evaluate(test.java:26)
        at test.paint(test.java:16)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:117)
        at java.awt.Component.dispatchEventImpl(Component.java:2447)
        at java.awt.Container.dispatchEventImpl(Container.java:1035)
        at java.awt.Component.dispatchEvent(Component.java:2307)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
        at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
1)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

When security is on, it runs fine. Or if the code moved to init method, it works fine regardless of security. We are using JDK 1.2.2.

Howard
2000-04-20 19:53:16 +00:00
jband%netscape.com 9b08d1ac85 Had the wrong clazz for the root! So it was better when the caching was broken. Now it works on MI objects with caching fixed. My bad copy/paste error from long ago. 2000-04-20 12:16:45 +00:00
jband%netscape.com 9c1badb1ca backing out little fix from earlier today because it causes crashes in some MI cases. I'll investigate and do the right fix 2000-04-20 11:06:48 +00:00
brendan%mozilla.org 3d6de092fd Check access and redeclaration legality when defining a getter/setter (36117, r=norris) 2000-04-20 07:10:14 +00:00
beard%netscape.com 9acaa398fe removed extraneous semi-colons after namespace declarations. 2000-04-20 06:20:31 +00:00
beard%netscape.com bb0348e64d warnings: commented out unused parameter name. 2000-04-20 06:19:43 +00:00
jband%netscape.com d727af1bbe fix typo bug that was causing wrapper cache misses on wrapper around objects implementing multiple interfaces when the first wrapper is made for an interface that is not leftmost 2000-04-20 03:38:47 +00:00
norris%netscape.com 62efd62f19 Add line number information. 2000-04-19 23:24:04 +00:00
rogerl%netscape.com 5199f6e49c Removing variables. 2000-04-19 22:45:57 +00:00
rogerl%netscape.com 772eb43e2e Added hasOwnProperty, propertyIsEnumerable, isPrototypeOf to Object. 2000-04-19 22:32:50 +00:00
rogerl%netscape.com 7b7fc3829f Began moving away from variables, fixed compare/branch ordering.
Testcases working.
2000-04-19 02:09:06 +00:00
scc%netscape.com 995abb7f46 making string conversions explicit 2000-04-18 23:53:10 +00:00
rginda%netscape.com 3a06b96f97 formatting changes. use only one tab regardless of nested namespaces 2000-04-18 21:51:45 +00:00
norris%netscape.com 5b52db907b Add missing method for 1.4R3 compatibility. 2000-04-18 16:53:28 +00:00
norris%netscape.com 1931f31f5b Fix bug where a bean property can conflict with a method name. 2000-04-18 16:52:00 +00:00
norris%netscape.com f10587a521 Fix bug:
var a = Math.abs;
  a(-245);

  gets the following error :

  org.mozilla.javascript.EvaluatorException: Method "abs" called on
  incompatible object.
2000-04-18 16:34:36 +00:00
rginda%netscape.com 1952e14ff8 removed superfluous ;s after namespace decs. 2000-04-18 07:14:49 +00:00
rginda%netscape.com 531ede4f17 regenerated opcode classes after grncode.pl changes 2000-04-18 07:06:25 +00:00
rginda%netscape.com 33d0848741 modified to print R~ if NotARegister 2000-04-18 07:04:24 +00:00
dp%netscape.com 366ecea0fc Implemented component unregister. 2000-04-18 05:26:40 +00:00
mccabe%netscape.com 4c637c806e added files: mozilla/js/src/xpconnect/src/nsScriptError.cpp 2000-04-18 02:35:06 +00:00
mccabe%netscape.com b93c689e66 Move nsIConsoleService and implementation into xpcom/base, and nsIScriptError and implementation into js/src/xpconnect. (A place for JavaScript-specific XPCOM would be better, but xpconnect will do). 2000-04-18 02:34:54 +00:00
rogerl%netscape.com fce9fa62b1 added '(' for RegisterList output 2000-04-18 01:46:32 +00:00
rginda%netscape.com 8ac24b9045 regenerated opcodenames to include padding, added label printing back into icg::print 2000-04-18 01:31:24 +00:00
rginda%netscape.com b0eca07a47 space out opcodenames array 2000-04-18 01:19:12 +00:00
beard%netscape.com 52d7e01394 std::pair 2000-04-18 00:52:07 +00:00
beard%netscape.com 7add6915a1 moved initConsole() out to :: namespace. 2000-04-18 00:51:53 +00:00
beard%netscape.com c18125076f added vmtypes.h,.cpp 2000-04-18 00:50:58 +00:00
rogerl%netscape.com f163805c99 added vmtypes/jstypes 2000-04-18 00:46:18 +00:00
rogerl%netscape.com 0e17feea55 Fixed WINDOZE build issues 2000-04-18 00:38:26 +00:00
rginda%netscape.com 73017de6a1 initial add of perl script to generate icode classes 2000-04-18 00:22:51 +00:00
rginda%netscape.com 5a6fd84159 removing bogus file 2000-04-18 00:20:10 +00:00
rginda%netscape.com 0fac613959 adding files for namespace change 2000-04-18 00:19:09 +00:00
rginda%netscape.com 66cb26879d added js::VM, ICG, JSTypes, and Interpreter namespaces; messed around with lots of code.
Created class for each ICode, adding a print() method (using formatters)
2000-04-18 00:17:34 +00:00
beard%netscape.com 02798c9177 FASTLOCK changes. 2000-04-17 23:58:28 +00:00
braddr%puremagic.com 97d2f19960 Implicit types are evil. Add PRUint32.
r=mccabe
2000-04-16 00:21:07 +00:00
jband%netscape.com 70c7e60b98 add a test with an 'out' array of strings 2000-04-15 18:44:22 +00:00
mccabe%netscape.com 73dd1ab098 Print error diagnostics to stderr even when non-debug, to support those folks
that want to debug with the -console flag.
2000-04-15 06:59:21 +00:00
brendan%mozilla.org ec5a9e9229 Always call resolve for each object in a prototype chain (35738, r=shaver). 2000-04-15 02:01:02 +00:00
shaver%mozilla.org 024dad8f12 Replace stupid and evil BYTECODE_ITER hack with proper use of back-patch
chained PatchGotos goodness.  (PatchGotos seasoned to taste.)
r=brendan
2000-04-14 23:27:09 +00:00
norris%netscape.com a3caa18f07 Fix
28390, 28866, 34364
r=brendan@mozilla.org
35701
r=jst@netscape.com
2000-04-14 03:14:53 +00:00
rogerl%netscape.com 1e558f10e2 Fxied oboscure bug when user defines function Object(), the next new Object
gets a stack crash looking for the prototype. (bug #32174)
2000-04-13 17:58:18 +00:00
beard%netscape.com e82b4e2532 gc_base now used as common base class of GC allocated objects. 2000-04-13 04:54:41 +00:00
beard%netscape.com 56d97a71e9 added gc_base, which defines a more generic operator new(). 2000-04-13 04:53:56 +00:00
beard%netscape.com d92905d034 builds gc 2000-04-13 00:37:00 +00:00
beard%netscape.com 1468acd8d1 Added gc_allocator.h to project and gc.lib to link against. 2000-04-13 00:28:40 +00:00
beard%netscape.com a1bed20974 linking in gc.lib from ../../gc/boehm 2000-04-13 00:16:58 +00:00
beard%netscape.com 2922707730 enabling GC on all platforms 2000-04-13 00:14:23 +00:00
norris%netscape.com 1316603f7b Fix bug 33841. 2000-04-12 17:30:32 +00:00
norris%netscape.com 5999d2b51d Remove obsolete statement from javadoc. 2000-04-11 18:24:08 +00:00
norris%netscape.com eda51b9f12 Update javadoc 2000-04-11 18:22:36 +00:00
beard%netscape.com 12ccc48ec4 JSActivation, JSFunction 2000-04-11 05:11:58 +00:00
beard%netscape.com 95604b5bff Added JSFunction, defineFunction() 2000-04-11 05:10:40 +00:00
beard%netscape.com c721ec102b defineFunction, added assert 2000-04-11 05:09:38 +00:00
beard%netscape.com b574e77f13 _Charalloc, deallocate(void*) for _WIN32 only 2000-04-11 04:55:27 +00:00
beard%netscape.com 92ec71fb35 defineGlobalProperty 2000-04-11 03:11:47 +00:00
beard%netscape.com af1f41fb7d JSObject, JSArray : public JSMap, gc_object<T>. Frame -> JSFrame. Added JSFrameStack which is an std:stack<JSFrame*, std:vector<JSFrame*> >. 2000-04-11 03:11:00 +00:00
beard%netscape.com 8ef180ab04 use gc_allocator<T> everywhere, addGlobalProperty -> defineGlobalProperty 2000-04-11 03:07:39 +00:00
beard%netscape.com 2930dfd621 removed commented out GET_PROP/SET_PROP. 2000-04-11 02:59:52 +00:00
beard%netscape.com 8bd406efae added gc_object. 2000-04-11 02:59:14 +00:00
beard%netscape.com f7fdcbff8b fixing an assert and warnings 2000-04-11 01:10:26 +00:00
rogerl%netscape.com 2757a2004e CALL opcode & frames etc. (r=beard) 2000-04-11 00:32:17 +00:00
waldemar%netscape.com 84bdf052ab Fixed delete/delete[] mismatch 2000-04-10 22:23:17 +00:00
waldemar%netscape.com d1e89106de Fixed memory leak 2000-04-10 22:20:00 +00:00
beard%netscape.com 1edba28c48 Fixed warnings about member initializers on Linux. Whatever. 2000-04-08 04:49:41 +00:00
beard%netscape.com 14a585783b Reduced size of args arrays to minimum. 2000-04-08 04:41:19 +00:00
beard%netscape.com 138afee3b4 Reordered parameters to getProperty()/setProperty() to be consistent with operand ordering. Added array allocation/indexing to testObjects(). 2000-04-08 04:15:02 +00:00
beard%netscape.com 6337059f6f JSArray::elements(1), operator[](const JSValue&), fixed register-indexing. 2000-04-08 04:12:28 +00:00
beard%netscape.com f589a1ab24 Fixed NEW_ARRAY, GET_ELEMENT, SET_ELEMENT printing., 2000-04-08 04:11:16 +00:00
beard%netscape.com 8c93fb3d06 NEW_ARRAY 2000-04-08 03:37:49 +00:00
beard%netscape.com 0822793571 Reordered GetProp/SetProp operands to base, name. Added NewArray, GetElement, SetElement instructions. 2000-04-08 03:37:18 +00:00
beard%netscape.com afd93b4e07 added JSArray, GET_ELEMENT, SET_ELEMENT, changed some ops to dest/src. 2000-04-08 03:23:44 +00:00
beard%netscape.com 468bc29100 added JSArray, comments. 2000-04-08 02:44:34 +00:00
beard%netscape.com 95cb0e8b9d Changed boilerplate, chmod -x 2000-04-08 02:29:07 +00:00
beard%netscape.com 010a45313a converted NotALabel to an enum, so it obeys proper scoping rules. 2000-04-08 02:25:37 +00:00
rogerl%netscape.com 5e55242311 added interpreter & icodegenerator 2000-04-08 01:09:50 +00:00
rogerl%netscape.com e60b5c26e9 Fixed wacky tabs 2000-04-08 01:08:01 +00:00
rogerl%netscape.com d26609534d Added ICodeModule to collect extra info about executable chunks. 2000-04-08 01:04:55 +00:00
beard%netscape.com bda3717ce9 fixed LoadImmediate. 2000-04-08 00:57:28 +00:00
beard%netscape.com 895fa664c4 reindented, introduced gc_map_allocator to hide platform differences 2000-04-08 00:52:59 +00:00
beard%netscape.com 7810a0856a conforming to MSVC++ allocators 2000-04-08 00:48:13 +00:00
rogerl%netscape.com ad01c0a3c9 Re-ordered instructions so destination is always first.
Changed labels to be struct * instead of ints.
2000-04-07 22:19:36 +00:00
rogerl%netscape.com 6b29288692 fix invalid return in GC_free for win32 build 2000-04-07 21:58:33 +00:00
rginda%netscape.com a475c7a48a #if out references to std::iterator to get gcc to compile 2000-04-07 21:11:40 +00:00
beard%netscape.com 89b42085ab printing code in testObjects(). 2000-04-07 04:59:57 +00:00
beard%netscape.com d5333de9ec added code to print SAVE_NAME, NEW_OBJECT, GET_PROP, and SET_PROP iCodes. 2000-04-07 04:58:58 +00:00
beard%netscape.com a1ce56851a JSObject and its elements now allocated using gc_allocator<T> (XP_MAC only). 2000-04-07 04:39:50 +00:00
beard%netscape.com 3f67d58724 JSValues now using gc_allocator (XP_MAC only for now). 2000-04-07 04:38:18 +00:00
beard%netscape.com 2800c15275 added gc library. 2000-04-07 04:36:38 +00:00
beard%netscape.com 22d99fdce4 prebuilt gc library for bootstrapping. 2000-04-07 04:35:14 +00:00
beard%netscape.com ca07212aa6 added stub implementations of GC entry points. 2000-04-07 04:00:21 +00:00
beard%netscape.com d7fa1b7fe2 added failed gc_rebind, for future compilers to ponder. 2000-04-07 03:11:38 +00:00
beard%netscape.com 1a2406676c duh, can't use wide string constants on Linux 2000-04-07 03:08:20 +00:00
beard%netscape.com 26a073ebc4 XP_MAC: no longer auto close upon exit (so we can see asserts, etc.). Renamed testInterpreter() to testFactorial(). Added testObjects(), which allocates an object, stores it in the global variable "global", assigns 0.0 to "global.counter", and finally defines a function "increment" which adds 1.0 to "global.counter" each time it is called. 2000-04-07 02:58:01 +00:00
beard%netscape.com 781aff8cd6 Added preliminary object representation class JSObject, which is simply an STL map<String, JSValue> for now. Changed static globals to be a JSObject (can you say scope chain?). Implemented NEW_OBJECT, GET_PROP, and SET_PROP, all in terms of operations provided by JSObject. No GC (yet). 2000-04-07 02:52:07 +00:00
beard%netscape.com 53882505b5 added forward declaration to class JSObject, and changed void* JSValue.ref to JSObject* JSValue.obj. 2000-04-07 02:47:53 +00:00
beard%netscape.com 59f99c863e fix calls to template superclass for gcc 2000-04-07 02:45:33 +00:00
beard%netscape.com dab8f50344 added NEW_OBJECT instruction. unified typedef GetProp, SetProp. changed typedef Return to class Return, added class NewObject. These classes automatically pass their opcode to their base-class, and look better in the debugger. Added a virtual destructor to Instruction() #ifdef DEBUG. Added newObject(), saveName() and setProperty() methods to ICodeGenerator. 2000-04-07 02:41:21 +00:00
beard%netscape.com 9c646bbafc added newObject(), saveName() and setProperty(). 2000-04-07 02:41:08 +00:00
waldemar%netscape.com 14b0eb8f01 Worked around Visual C++ bugs 2000-04-07 00:47:39 +00:00
beard%netscape.com f973ddc215 needed to qualify isFieldKind 2000-04-07 00:24:42 +00:00
beard%netscape.com bfe503795f adding int to printCharBufferSize 2000-04-07 00:23:33 +00:00
waldemar%netscape.com 56188bfaae Fixed Mac MPW build 2000-04-07 00:06:05 +00:00
rginda%netscape.com d4b296f0f9 fix to include java version info on rhino(i|ms|msi) engines 2000-04-07 00:05:50 +00:00
waldemar%netscape.com 709bb0562d Made Mac MPW js2 tool work 2000-04-07 00:05:23 +00:00
waldemar%netscape.com 7523109fc4 Added Buffer, BitSet, and implemented Formatters for output 2000-04-06 23:48:05 +00:00
waldemar%netscape.com f9ce82ae8e Implemented Formatters for output 2000-04-06 23:47:33 +00:00
waldemar%netscape.com 5d892e7bf7 Implemented Formatters for output and added parseMember 2000-04-06 23:45:58 +00:00
waldemar%netscape.com 66d8f5244f Fixed syntax errors 2000-04-06 23:43:08 +00:00
waldemar%netscape.com 182fc056f3 Commented out syntax error 2000-04-06 23:40:47 +00:00
rogerl%netscape.com dcbc9904da Changed compare/branch handling to determine last compare opcode.
Made returnStatement a member in ICG.
2000-04-06 22:40:17 +00:00
rginda%netscape.com 5ef5dcbc26 punctuation fix 2000-04-06 21:50:03 +00:00
rginda%netscape.com 83d124c38c -- NOT PART OF THE DEFAULT BUILD --
Added -c (stackchunksize) option to the js shell, for testing purposes
r=pschwartau
2000-04-06 21:19:56 +00:00
rginda%netscape.com 6a5c93bd51 added -o/--opt options to pass args to js engine 2000-04-06 21:14:23 +00:00
rginda%netscape.com b4eab2df18 remove +x mode.
Not part of the default build.
2000-04-06 20:27:22 +00:00
beard%netscape.com bed1820c51 Added interpreter.o to build of js2. 2000-04-06 03:05:12 +00:00
beard%netscape.com efcd4404fa cases for SUBTRACT, MULTIPLY, DIVIDE in print(). 2000-04-06 03:02:24 +00:00
beard%netscape.com 6e423dece1 added testInterpreter(), which computes factorial using iCode (woo hoo!) 2000-04-06 02:59:16 +00:00
beard%netscape.com 602bdc5282 more arithmetic, conditional branches, return instruction. 2000-04-06 02:58:22 +00:00
beard%netscape.com a57994c317 added new instructions, SUBTRACT, MULTIPLY, DIVICE, BRANCH_*, and RETURN. Changed LoadVar/SaveVar to have uint32 operand. Added optional paramter branchOp to ICodeGenerator::branchConditional() & endWhileExpression() to parametrize branch kind. Added complete(Register) to generate a RETURN instruction. 2000-04-06 02:57:42 +00:00
beard%netscape.com 2901700dc5 added a ref field, changed default constructor to initialize f64. 2000-04-06 02:52:51 +00:00
rogerl%netscape.com 047b74d5c6 Resolved branch targets 2000-04-06 00:04:11 +00:00
beard%netscape.com f1388bf5a6 removed usage of labels (duh) 2000-04-05 23:57:51 +00:00
rogerl%netscape.com d5b0b5bc32 typedef'd instructions 2000-04-05 23:41:58 +00:00
beard%netscape.com 76e3fd2f85 Added default case to avoid warning 2000-04-05 21:26:01 +00:00
beard%netscape.com 528d7eb22f added "globals", labels parameter for branches, combined some Instruction_N<> typedefs. 2000-04-05 20:33:41 +00:00
beard%netscape.com 9a69888729 added labels parameter. 2000-04-05 20:29:09 +00:00
beard%netscape.com 391d9767eb added Instruction::opcode(), and Instruction_N::oN(), and ICodeGenerator::getLabels(). 2000-04-05 20:28:17 +00:00
beard%netscape.com 59cf8293ac moved declaration of lgBasicAlignment & basicAlignment inside the include guard. 2000-04-05 20:26:49 +00:00
rogerl%netscape.com c0c155dec7 added missing semi in win32 case 2000-04-05 18:20:02 +00:00
beard%netscape.com 96f9207cc7 added interpreter.cpp/.h 2000-04-05 18:06:04 +00:00
brendan%mozilla.org eb7b547e77 Fix 22048 and 33391 (see bugs for details; r=jband@netscape.com). 2000-04-05 06:39:11 +00:00
beard%netscape.com 8a75ea3668 linux fixes 2000-04-05 06:10:53 +00:00
beard%netscape.com ab11ac751b first crack at an icode interpreter 2000-04-05 06:05:57 +00:00
beard%netscape.com 932ecf336b turned off '\n' -> '\r' mapping 2000-04-05 04:25:51 +00:00
beard%netscape.com 2ff22a0e79 backed out "fix" (thanks waldemar) 2000-04-05 04:24:19 +00:00
beard%netscape.com 91135e142e removed newline mapping code (instead using compiler mapping of '\n' to '\r' in literals, which should do the right thing). 2000-04-05 03:57:57 +00:00
beard%netscape.com a5e6536104 added JS2MPW target (non-debug), converted MPW targets to do newline mapping (rather than using explicit override functions). 2000-04-05 03:56:34 +00:00
beard%netscape.com f6728f15b4 removed DEBUG 2000-04-05 03:54:46 +00:00
beard%netscape.com 7562d30003 debug prefix for MPW tool. 2000-04-05 03:54:30 +00:00
dveditz%netscape.com ec8da1a0e9 Use threadsafe ISupports for service 2000-04-05 03:31:57 +00:00
brendan%mozilla.org 6b71fed163 Clean up ugly whitespace, some of which survived my r=brendan comments. 2000-04-05 02:17:38 +00:00
beard%netscape.com 8a1dbf5904 now using gc_container<T>. 2000-04-05 02:05:12 +00:00
beard%netscape.com 66bbb0bc4b convenience container types that use the GC_allocator. 2000-04-05 02:03:03 +00:00
beard%netscape.com 86d14fee9a added a comment. 2000-04-05 01:55:14 +00:00
beard%netscape.com 5b21e4b8ec making icode generation test not mutually exclusive with the REPL. 2000-04-05 00:52:47 +00:00
beard%netscape.com 18a631e12e changed to use locally built gc.o library. 2000-04-05 00:50:59 +00:00
beard%netscape.com fbfcf75306 gc configuration file. 2000-04-05 00:50:32 +00:00
beard%netscape.com a6dabb8495 local project to build the gc itself. 2000-04-05 00:50:01 +00:00
beard%netscape.com 540d3fe5d1 Fixing linux build: needed <algorithm> and stub implementations of parseMember, parseNonAssignmentExpression, paraseAssignmentExpression and parseExpression. 2000-04-04 23:58:30 +00:00
waldemar%netscape.com 9989984744 Updated for lexer changes 2000-04-04 21:43:28 +00:00
waldemar%netscape.com 342f045b6d Added insertChars, removed SourcePosition, and reorganized Exception class 2000-04-04 21:42:39 +00:00
waldemar%netscape.com 23152b92cb Added postfix expression parsing. Simplified Reader. 2000-04-04 21:39:59 +00:00
waldemar%netscape.com 8c3ea7467e Updated sprintf call 2000-04-04 21:38:53 +00:00
waldemar%netscape.com a84c5b0547 Updated lexer API 2000-04-04 21:38:25 +00:00
waldemar%netscape.com cf09318769 Reordered files 2000-04-04 21:37:20 +00:00
waldemar%netscape.com b3f0341877 Fixed syntax errors 2000-04-04 21:36:57 +00:00
brendan%mozilla.org e8ead8549a Eliminate unused var warning and clean up other stuff not in the patch I reviewed and approved! 2000-04-04 08:17:05 +00:00
cls%seawood.org 57978e5c23 Moved static MOZ_COMPONENT_NSPR_LIBS, MOZ_COMPONENT_XPCOM_LIBS, MOZ_COMPONENT_LIBS definitions from configure.in to config.mk. Replaced -lxpcom in Makefiles to $(XPCOM_LIBS) so that we can optionally link against -lboehm when needed. Bug #31287 2000-04-04 04:46:38 +00:00
rogerl%netscape.com 131d10c8ea cleaning up the codestate classes; continue labels 2000-04-04 01:48:35 +00:00
cls%seawood.org 61f85b0c73 Use LDFLAGS when creating shared libraries. It may contain the paths to essential libraries. 2000-04-03 01:04:59 +00:00
cls%seawood.org 0d63199902 Adding a script to print out which of a given list of files do not end with a newline. Source files that do not end with a newline break at least the HP-UX compiler. Adding newlines to all of the source files found at this point. 2000-04-02 07:17:25 +00:00
brendan%mozilla.org 120957d855 Don't forget to drop property in getter/setter case (34069, r=jband,a=leaf). 2000-04-01 04:23:04 +00:00
rogerl%netscape.com 3714722cf4 For statements. 2000-04-01 02:53:16 +00:00
rogerl%netscape.com 4c52a939a5 Added do & switch statements, more hacking at the code state thing. 2000-04-01 01:30:32 +00:00
scc%netscape.com 080a801eb7 making string conversions explicit 2000-04-01 00:39:02 +00:00
mccabe%netscape.com fddee86d15 Error reporting mechanisms for nsDocShell (xul js and content js) and mosJSComponentLoader (JS components) now pipe error objects to the JavaScript console. 2000-03-31 11:19:51 +00:00
jband%netscape.com 614784ba32 fix a side effect of the fix to bug 32485. It turns out it is better to leak some native objects while shutting down then to fire off Release calls on those wrapped native objects and watch the browser crash 2000-03-31 10:31:00 +00:00
beard%netscape.com 33874b728f fixing a broken header. 2000-03-31 05:47:42 +00:00
jband%netscape.com 80550f984e use JS_LookupProperty to find the Components object in the JS scope because the OBJ_GET_PROPERTY call we had been using can fail for security reasons. travis needs this to fix bug 33489. r=brendan@mozilla.org 2000-03-31 02:47:46 +00:00
brendan%mozilla.org 541058b723 Allow anonymous function compilation via JS_Compile*Function (33840, r=shaver,jband). 2000-03-31 02:47:15 +00:00
rogerl%netscape.com 788fbc5ec8 Changes to CodeState thing, still not happy with this - RTTI would be
better?
2000-03-31 01:54:28 +00:00
beard%netscape.com 6763f39040 making icodegenerator work on Linux 2000-03-31 00:42:25 +00:00
beard%netscape.com b329cb0167 added icodegenerator.cpp 2000-03-31 00:09:24 +00:00
jband%netscape.com dd8457f599 fix a search-and-replace mistake that was hiding in an #ifdef 2000-03-30 22:37:29 +00:00
jband%netscape.com ddf804fae7 Expose method for getting a 'safe' JSContext appropriate for use on the current thread. This will help travis fix bug 33489. r=brendan@mozilla.org. 2000-03-30 07:06:10 +00:00
jband%netscape.com ab6e3ae8c5 fix for bug 32485. Mark wrappednatives when xpconnect shuts down to avoid bad things happening when JS collects the JSObject part of the wrapper. r=mccabe 2000-03-30 00:09:15 +00:00
rogerl%netscape.com 0fc7bc4bdb Bug #32677, fix for optimizer reducing expression incorrectly for Math.pow
edge cases.
2000-03-29 23:46:08 +00:00
rogerl%netscape.com b3e1adad38 Bug #32677, r=rginda bugs in Win32 optimized version for edge cases in
Math.exp and Math.pow
Bug #32937, r=rginda, implement missing toLocaleString
2000-03-29 23:45:07 +00:00
rogerl%netscape.com dd0e354b10 Test driver for icg in main, just a temporary thing 2000-03-29 19:24:07 +00:00
rogerl%netscape.com 4e4f0fd854 First hack at some icode generation. 2000-03-29 19:19:23 +00:00
jband%netscape.com 732ce11747 adding new files - not part of build 2000-03-28 05:14:51 +00:00
jband%netscape.com b5fa1f25db Landing changes that have been banging around in my tree... - Add #ifdef'd out support for profiling. - Add support for calling the JS gc root dumper. - Add unified #define for dumping shutdown info". Remove redundant define in makefile.win. - Prepare for semantic change to nsIInterfaceInfo::GetParent if there is no parent (return null rather than an error code). 2000-03-28 03:54:34 +00:00
jband%netscape.com 0ec5a0540c allow for later use of xpconnect\tools 2000-03-28 03:46:21 +00:00
jband%netscape.com db0060c73f general cleanup 2000-03-28 03:45:12 +00:00
norris%netscape.com 92abe5891c Fix bug 33239. 2000-03-24 23:06:02 +00:00
brendan%mozilla.org 67c7207921 Augh! Fix one name-hiding warning, add another... Fixed. 2000-03-24 03:01:47 +00:00
brendan%mozilla.org 8bc339a857 Eliminate name-hiding and consequent compiler warning (r=shaver@mozilla.org). 2000-03-24 00:20:02 +00:00
brendan%mozilla.org 3885090954 Rename stacksize formal param to stackChunkSize (27767, really a doc bug). 2000-03-23 23:50:29 +00:00
brendan%mozilla.org d9dad582f8 Rename stacksize to stackChunkSize, similar cleanups, default new object class extension (27767). 2000-03-23 23:47:23 +00:00
brendan%mozilla.org f3a07673fc Optimize lightweight function calls, and bound their recursion (27767, r=rogerl@netscape.com). 2000-03-23 23:29:36 +00:00
rogerl%netscape.com 8165cab2a9 r=brendan@mozilla.org
Bug #32674, JS_SetVersion hides error; also, jsscan.c keyword bug
2000-03-23 23:00:35 +00:00
slamm%netscape.com da5accf667 Quiet a warning: '/*' within a comment. 2000-03-22 04:56:37 +00:00
rginda%netscape.com 39c6c41477 Fixed lame speeling erras 2000-03-22 01:25:37 +00:00
waldemar%netscape.com c9f5bf1179 Made ifdef _WIN32 uniform 2000-03-22 00:52:06 +00:00
rogerl%netscape.com 3581c8e965 r=rginda
bug #31316, screwed up match array contents for | operator.
2000-03-21 21:11:19 +00:00
ftang%netscape.com c9d3a2036a add assertion code to catch data lostage. r=jband 2000-03-21 21:02:18 +00:00
beard%netscape.com d456930974 fix stand-alone LiveConnect shell on XP_MAC. 2000-03-18 09:45:13 +00:00
beard%netscape.com 5d7976051c fix simple callbacks (not part of standard LiveConnect) 2000-03-18 09:44:07 +00:00
beard%netscape.com 307efa378c added classpath processing. 2000-03-18 09:42:15 +00:00
beard%netscape.com 4a376d4e5b removed redundant implementation of strdup. 2000-03-18 00:55:47 +00:00
beard%netscape.com da7ef54727 fixed to work with Universal Headers 3.3 JManager interfaces. 2000-03-18 00:55:15 +00:00
beard%netscape.com 5b7fb442d2 fixed to work with Universal Headers 3.3 to get MRJ interfaces/libraries, added jsj_simpleapi.c. (not part of mozilla build) 2000-03-18 00:53:55 +00:00
mccabe%netscape.com 7fadd2f19a Patches for building perlconnect, courtesy Pavel Hlavnicka <pavel@gingerall.cz>. 2000-03-17 06:40:22 +00:00
gagan%netscape.com 5ec5e31673 Fix a mem leak. r=jband 2000-03-16 23:31:53 +00:00
norris%netscape.com ff977ce6cd fix NullPointerException 2000-03-16 22:43:03 +00:00
rginda%netscape.com 9d07dbc637 changing format of generated results file name to place the date before the engine name 2000-03-15 21:49:13 +00:00
norris%netscape.com f9ed21e9a7 clean up regressions in test suite from last fix 2000-03-15 19:40:53 +00:00
norris%netscape.com 27bba05faa Fix regressions caused by support for function expression statements. 2000-03-15 17:18:12 +00:00
mkaply%us.ibm.com 404c967b8e # 25555
r= rogerl@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-03-15 14:50:26 +00:00
mkaply%us.ibm.com e859503601 # 25555
r= rogerl@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-03-15 14:31:55 +00:00
norris%netscape.com 3c721d3a11 31251 NervousText.js applet doesn't work 2000-03-14 01:20:45 +00:00
beard%netscape.com fbc3531947 added mozilla/js/rhino/org/mozilla/javascript/tools/jsc/Main.java 2000-03-14 00:24:23 +00:00
norris%netscape.com abdd921231 generalize on number of threads, add synchronization point so test case behaves as advertised 2000-03-13 21:45:02 +00:00
norris%netscape.com 5726b14bcc Implement distinction between function statements, function expressions, and function expression-statements. 2000-03-13 18:27:42 +00:00
norris%netscape.com 879940613f Fix 31639 Oldstyle Java property method names no longer work with defineClass 2000-03-13 17:12:36 +00:00
jband%netscape.com e0098df4ca Fix protection against gc reentry on same thread but on different JSContexts. Also fix potential deadlock in gc when destroying a JSContext while some other thread is blocked in gc waiting for the EndRequest of the first thread. The reentrance fix is needed to fix bug 28570. r=brendan@mozilla.org 2000-03-12 05:09:46 +00:00
norris%netscape.com b06e55722c Files:
caps/idl/nsICertificatePrincipal.idl
	caps/idl/nsIPrincipal.idl
	caps/src/nsBasePrincipal.cpp
Implement the ability to manipulate multiple capabilties simultaneously.
r=mstoltz@netscape.com

Files:
	caps/src/nsCodebasePrincipal.cpp
Codebase equality should be based upon origin, not full path.
r=mstoltz@netscape.com

Files:
	caps/src/nsScriptSecurityManager.cpp
Change URI checking to deny based upon scheme rather than allow based upon
scheme for greater flexibility.
r=mstoltz@netscape.com

Files:
	dom/public/nsDOMPropEnums.h
	dom/public/nsDOMPropNames.h
	dom/src/base/nsGlobalWindow.cpp
	modules/libpref/src/init/all.js
Fix bug 20469 Seeing JS functions and global variables from arbitrary host
r=vidur@netscape.com

Files:
	dom/src/base/nsJSUtils.cpp
	dom/src/base/nsJSUtils.h
	dom/src/base/nsJSEnvironment.cpp
	dom/tools/JSStubGen.cpp
	layout/base/src/nsDocument.cpp
	layout/html/content/src/nsGenericHTMLElement.cpp
Improve performance by removing NS_WITH_SERVICE call for every DOM access.
Propagate XPCOM failure codes out properly.
r=vidur@netscape.com

Files:
	layout/html/document/src/nsFrameFrame.cpp
Fix 27387 Circumventing Same Origin security policy using setAttribute
r=vidur@netscape.com
2000-03-11 06:32:42 +00:00
pavlov%netscape.com 33ce2d4e90 changes to let us build on MacOS X 2000-03-11 03:08:04 +00:00
norris%netscape.com 66de3cd3ca Make Wrapper an API class. 2000-03-10 20:55:36 +00:00
norris%netscape.com 63495fcbbb Add support for testing against the MS VM. 2000-03-10 20:38:57 +00:00
rginda%netscape.com 6de0f96907 Put the redirect back in. (Doh) 2000-03-10 19:12:53 +00:00
rginda%netscape.com d4f8429909 Removing debug output 2000-03-10 19:06:36 +00:00
rginda%netscape.com eecdf9a2b6 Fix lame syntax error 2000-03-10 18:58:45 +00:00
rginda%netscape.com e0a16d193b Modified jsDriver.pl to allow multiple engine arguments, updated readme to tell the world. 2000-03-10 18:54:21 +00:00
rginda%netscape.com c42b4973b7 Initial add of Function Expression/Statement tests 2000-03-10 18:31:04 +00:00
mccabe%netscape.com 98328c4bf4 Replace some ternary expressions
step += (InLeapYear(t) ? 29 : 28);

with the form

    if (InLeapYear(t))
        step += 29;
    else
        step += 28;

to work around an apparent JRE bug in which the code always returns 28.
2000-03-10 02:05:41 +00:00
beard%netscape.com 032380c1b3 now includes all of the optimizer classes 2000-03-10 01:05:28 +00:00
norris%netscape.com 86a0519973 javadoc comment. 2000-03-10 01:03:59 +00:00
beard%netscape.com c23475c1ca imports js.mcp.xml into js-all.mcp 2000-03-10 01:03:58 +00:00
norris%netscape.com 199f666ef8 Fix command line 2000-03-09 23:33:06 +00:00
norris%netscape.com 122be924b1 Add html page for the NervousText applet. 2000-03-09 23:06:54 +00:00
norris%netscape.com 530119248e Fixes for NervousText example. 2000-03-09 21:50:14 +00:00
norris%netscape.com 5d42d30699 Try to fix Solaris/Linux failures. 2000-03-09 21:46:42 +00:00
rogerl%netscape.com 2723ceea9b Put NonGreedy back in. 2000-03-09 02:39:58 +00:00
beard%netscape.com de9a3d5b81 Added gctest target, added -lm to get floor() 2000-03-09 02:11:52 +00:00
beard%netscape.com 936efe5b4c oops, commented out gc_types<T>::string. 2000-03-09 01:44:35 +00:00
beard%netscape.com 41c89d932b g++ doesn't provide numeric_limits<T> 2000-03-09 01:35:53 +00:00