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

5746 Коммитов

Автор SHA1 Сообщение Дата
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
igor%mir2.org 153f7be2a2 Support for Date.now() 2004-04-14 11:04:55 +00:00
brendan%mozilla.org f3e73b9da0 Er, let's try caillon's patch (bug 240458, r=me). 2004-04-14 02:36:37 +00:00
brendan%mozilla.org e4d5924763 Fix cosmetic bug pointed out by caillon, passing JS_FALSE rather than 0 to js_DecompileValueGenerator (API change wasn't tracked long ago). 2004-04-14 02:35:34 +00:00
cbiesinger%web.de 71f5f4282a fixing win32 bustage 2004-04-13 19:54:44 +00:00
brendan%mozilla.org ff71873e75 - Improve global variable performance from 3x slower to 1.2x slower than
locals (169559, r=shaver).
- Also fix longstanding bug where global regexps in precompiled scripts were
  wrongly shared among threads/contexts (165201, r=shaver).
- Also fix strict-aliasing gcc warning causes (206599, r=bryner).
2004-04-13 01:25:17 +00:00
brendan%mozilla.org 7e870f0884 Fix from Sterling Bates <whoelse.sterlingbates.com> for JS_ValueToInt32. 2004-04-09 23:58:26 +00:00
brendan%mozilla.org 139d599b1a Trivial followup fix to 127418 based on m.jseng feedback, r/a=me. 2004-04-09 01:05:56 +00:00
brendan%mozilla.org 0156749808 Oops... 2004-04-07 00:17:44 +00:00
brendan%mozilla.org 91961a696c Avoid invading JS namespace with global (239122 followup). 2004-04-07 00:02:50 +00:00
darin%meer.net 2c48e8fce8 fixes bug 239661 "xpconnect.xpt should be included in dist/gre" r=cls a=chofmann 2004-04-06 04:25:48 +00:00
kyle.yuan%sun.com 8a147d1bbf Bug 239122 Liveconnect can be used to read any file on user's filesystem
enabling UniversalBrowserRead only during js calling applet
r=jst, sr=brendan, a=chofmann
2004-04-06 03:15:55 +00:00
timeless%mozdev.org 786965d4a8 Fixing line endings to appease openwatcom's nmake
this is spidermonkey standalone
2004-04-04 19:46:38 +00:00
brendan%mozilla.org c29de605ca Tolerate asymmetric/request-less lock nesting, as happens with Mozilla DOM code (229200, r=shaver, a=chofmann). 2004-04-03 22:21:03 +00:00
brendan%mozilla.org 18dac71e1f My edits to timeless's patch for bug 238303, to fix warnings (r/a=me). 2004-04-03 22:11:11 +00:00
pedemont%us.ibm.com df4aca062c Bug 237183, Add FP exception handler to OS/2, r=brendan, a=mkaply 2004-03-31 16:38:54 +00:00
igor%mir2.org c685edc692 Fixing bug 58118 : long overdue commit of patch from Mike McCabe, mike+mozilla@meer.net 2004-03-30 12:48:29 +00:00
igor%mir2.org 701ea21521 Since new x in Java never returns null, the check for null in date_format was redundant. 2004-03-30 10:35:42 +00:00
brendan%mozilla.org 8dcdcb1f89 Parallel fix to SpiderMonkey's bug 238945, to automatically insert ; after do-while on any error token. 2004-03-30 03:25:17 +00:00
brendan%mozilla.org 73ca7a66e9 Do automatic semicolon insertion after do-while loops for any error token, contrary to ECMA-262, to match almost a decade's worth of practice (238945, r=shaver, a=chofmann). 2004-03-30 03:20:03 +00:00
igor%mir2.org eef0796b8a Faster implementation of MonthFromTime and DateFromTime:
1. Use day / 30 as month estimate with the following adjustment via switch()
2. Reuse year from day calculations in IsLeapYear
2004-03-29 15:19:04 +00:00
igor%mir2.org 021b376688 Fixing bug 239068: proper initialization of parent scope for functions of constructors. 2004-03-29 15:15:34 +00:00
igor%mir2.org 3a93fa2e8e DaysInYear is replaced by IsLeapYear since the former was used only to determine if a particular was leap or not 2004-03-29 14:16:23 +00:00
igor%mir2.org ba8f69355a Cosmetics: layout fixes 2004-03-29 12:30:24 +00:00
igor%mir2.org dfdd5ab46c Starting 1.5R5.1 development 2004-03-29 12:29:11 +00:00
brendan%mozilla.org 256c91d0ae Fix js_LookupCompileTimeConstant to respect shadowing properties (238881, r=shaver, a=chofmann). 2004-03-29 01:11:24 +00:00