igor%mir2.org
aaf9cdfddc
Improve error messages for the optimizer when accessing undefined values
2004-05-11 10:06:51 +00:00
brendan%mozilla.org
40ad09e575
Add compileFile function to help bz's plan for tinderbox-driven JS syntax checking.
2004-05-11 02:13:47 +00:00
brendan%mozilla.org
dbc15454e8
Pick up fix for NSPR bug 162786.
2004-05-11 01:45:20 +00:00
igor%mir2.org
b9f058dfe3
Cleanup of hasVarsInRegs
2004-05-10 16:45:02 +00:00
igor%mir2.org
5d1aacca6a
Apply direct call optimization only for functions that do not need activation.
2004-05-10 15:28:32 +00:00
igor%mir2.org
d2ab61c277
Determine functions that require activation during parsing and not in NodeTransformer
2004-05-10 13:39:14 +00:00
igor%mir2.org
27e2f6d328
Removal of checks for unitialized lVal.getJRegister(): the registers are always initialized in prelude.
2004-05-10 05:24:29 +00:00
igor%mir2.org
44deec93c2
Removal of JavaVariable interface in favor of simple method in ClassFileWriter. It allowed to shrink OptLocalVariable and made other code simpler.
2004-05-09 22:09:03 +00:00
igor%mir2.org
ed03829d75
Clenup the usage of getJRegister/assignJRegister
2004-05-09 21:07:08 +00:00
igor%mir2.org
5a48e9dc3a
Move all logic regarding establishing type of variable into Block.java
2004-05-09 21:06:20 +00:00
igor%mir2.org
b7fec72bfc
Removal of no longer used LASTUSE property and corresponding optimizer code
2004-05-09 12:38:45 +00:00
igor%mir2.org
0be4188b87
Remove code for CSE optimisation: it was used only to merger this.property calls but this optimisation changes program semantic if property is controlled by native getter.
2004-05-09 10:14:01 +00:00
igor%mir2.org
316271b0a9
OptLocalVariable cleanup: under optimization GETVAR/SETVAR nodes always has a reference to them
2004-05-08 22:24:02 +00:00
igor%mir2.org
07a54c7b74
Remove markLiveAcrossCall functionality that was never used for any optimizations
2004-05-08 21:05:00 +00:00
igor%mir2.org
1059cf02ce
Merge addToken/addString into single addString
2004-05-08 19:21:37 +00:00
igor%mir2.org
749dfe5b5d
Optimization of ++/-- and merge separated postIncrement/postDecrement to single postIncrDecr to remove too much code duplication
2004-05-07 15:05:11 +00:00
igor%mir2.org
fd2bfff2a7
FatBlock is moved to Block as a private class
2004-05-07 15:03:39 +00:00
igor%mir2.org
09b1d12d63
Added addPush(boolean)
2004-05-07 15:00:17 +00:00
brendan%mozilla.org
b1ff54492a
Add JS_DefineUCFunction (rs=jst).
2004-05-07 03:21:30 +00:00
timeless%mozdev.org
c1647ac842
Bug 224650 nsXPCOM.h included twice
...
patch by d_king@xtra.co.nz r=edburns sr=brendan
2004-04-30 16:46:33 +00:00
brendan%mozilla.org
2521542a8a
Reload onbranch after possible native function calls (241050, r=shaver).
2004-04-30 02:43:50 +00:00
brendan%mozilla.org
193b72e4d4
Typo in comment fixed.
2004-04-29 21:54:20 +00:00
BradleyJunk%cinci.rr.com
1a478a2f5f
Bug 223536 - Exposing XPConnect jsval <-> nsIVariant to conversion functionality. r=dbradley, sr=jst
2004-04-24 10:26:27 +00:00
cbiesinger%web.de
63d29ad2cd
bug 241329, allow compiling spidermonkey with openwatcom
...
r=brendan
2004-04-23 19:07:40 +00:00
brendan%mozilla.org
72c9a29bc2
Forgot to serialize/deserialize JSRegExp.cloneIndex, and rev XUL FastLoad file version (240404, r+sr=shaver).
2004-04-22 16:00:48 +00:00
igor%mir2.org
a06c84f791
Extend optimization ==, !=, ===, !== against null to check null presence on any side of the test.
2004-04-21 12:00:27 +00:00
brendan%mozilla.org
320d95637a
Sigh, go back to requiring a native object for the global object in FindConstructor, to unbreak lazy class init.
2004-04-20 18:02:49 +00:00
igor%mir2.org
5a691b58fa
Fix max stack calculations in dcpLoadAsObject/dcpLoadAsNunber and optimize visitIfJumpRelOp to take advantage of the fact that left and right numerical operands force numeric context.
2004-04-20 13:00:08 +00:00
brendan%mozilla.org
9444b6030c
Fix intN vs. jsword leftover confusion in context-thread API.
2004-04-20 02:21:27 +00:00
BradleyJunk%cinci.rr.com
c4dec9f006
Ok, I'm going to try this again, patch confused me. This should now be properly backed out
2004-04-19 20:23:29 +00:00
BradleyJunk%cinci.rr.com
3857e387ed
Bah, I checked in the wrong patch, sorry, backing out
2004-04-19 20:11:36 +00:00
BradleyJunk%cinci.rr.com
ac91cd745c
Bug 223536 - Exposing XPConnect jsval <-> nsIVariant to conversion functionality
...
r=dbradley, sr=jst
2004-04-19 20:05:39 +00:00
gerv%gerv.net
8b8dde7d95
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 22:01:16 +00:00
igor%mir2.org
c39f4108d7
Reuse code to generate optimized if jumps for boolean operations that return Boolean instance
2004-04-18 20:29:41 +00:00
igor%mir2.org
8231a39a23
Cleanups:
...
1. Added addObjectToDouble() to replace explicit code generation for object to double convertion.
2. nodeIsDirectCallParameter returns dcp register to avoid double look up of OptVariable
2004-04-18 16:29:12 +00:00
igor%mir2.org
2957c844ca
Layout cosmetics
2004-04-18 16:26:32 +00:00
igor%mir2.org
97dc2f98e4
Trust JVM to implement "<=" and "<" according to JVM specs and replace code like
...
d1 == d1 && d2 == d2 && d1 < d2
with simple
d1 < d2
That in turn allows to simplify code generation and remove OptRuntime.cmp_ functions.
2004-04-18 14:53:34 +00:00
igor%mir2.org
b9219ca745
Trust JVM to implement "<=" and "<" according to JVM specs and replace code like
...
d1 == d1 && d2 == d2 && d1 < d2
with simple
d1 < d2
2004-04-18 14:52:22 +00:00
igor%mir2.org
d6576c5892
Remove commented out code to treat integer specially: it is not applicable any longer in any case.
2004-04-18 14:49:50 +00:00
igor%mir2.org
d62ad77af5
Work on bug 238649: no more support for ClassNameHelper and friends
2004-04-18 12:15:07 +00:00
igor%mir2.org
b71427a6ae
Worj on bug 238649: removal of NotAFunctionException
2004-04-18 09:30:30 +00:00
bryner%brianryner.com
642f7ede36
deCOMtaminate nsIScriptObjectPrincipal (bug 240745). This also fixes some code in nsCrypto.cpp that sems to have been mis-braced (I don't think it was working as intended). r+sr=jst.
2004-04-18 00:28:47 +00:00
igor%mir2.org
534c7d51d6
1. Change cmp_* functions to return boolean, not int, to simplify code.
...
2. Move optimizer-only functions from ScriptRuntime.java to optimizer/OptRuntime.java
3. Add ScriptRuntime.wrapBoolean to wrap boolean value and use it in the optimizer
2004-04-16 07:38:20 +00:00
timeless%mozdev.org
483eb6656a
Fixing build and nspr links
2004-04-15 21:36:33 +00:00
brendan%mozilla.org
65d2274604
More cloned function object fixing: don't convert a jsval to a JSFunction, then back up via fun->object -- that leads to the clone-parent, when the value may be the clone we want (240577, r=shaver).
2004-04-15 21:01:24 +00:00
timeless%mozdev.org
f0af12bf85
Bug 240500 JS_DefineFunctions APIDoc for return is wrong
...
r=brendan
2004-04-15 16:20:34 +00:00
brendan%mozilla.org
ab1b721b28
Fix old watchpoint function vs. clone bug (240577) and undo bogus strict warning from lazy class init (240404 in part).
2004-04-15 09:05:46 +00:00
brendan%mozilla.org
369750021e
Hackaround for bug 240404.
2004-04-15 08:11:55 +00:00
igor%mir2.org
81470d5283
1. Throw IllegalArgumentException instead of EvaluatorException when argument does not belong to JS runtime types.
...
2. Optimize eq and shallowEq in ScriptRuntime to share code with optimized versions in Interpreter.
2004-04-14 14:50:24 +00:00
igor%mir2.org
cb3ccb29b3
Layout cosmetics
2004-04-14 14:46:58 +00:00