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

5738 Коммитов

Автор SHA1 Сообщение Дата
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
igor%mir2.org 40db418d07 Fixing 238823 : throw explicit IllegalArgumentException when JS source for Context.compileFunction does not contain single JS function statement instead of producing silent empty functions or throwing obscure NullPointerExceptions 2004-03-27 09:35:22 +00:00
igor%mir2.org e229fd6ab4 Better formating 2004-03-26 13:01:17 +00:00
igor%mir2.org 78ec796300 Fixing bug 238699 : refactoring to expose simpler code generation API caused to select wrong code path when compiling functions 2004-03-26 12:42:00 +00:00
timeless%mozdev.org f2569bca03 Bug 238393 DRefTool analysis for jsd files
r=rginda a=asa
2004-03-26 07:27:05 +00:00
igor%mir2.org 0292a753a1 Explicit date in Context.getImplementationVersion() for 1.5R5 release 2004-03-25 20:37:32 +00:00
igor%mir2.org 1aafe09612 Reflecting 1.5R5 release 2004-03-25 19:45:56 +00:00
igor%mir2.org cbce2b4745 Starting 1.5R6 2004-03-25 17:58:03 +00:00
igor%mir2.org 420074b3a1 Removal of macbuild support: its Mac OS X time after all 2004-03-25 17:39:21 +00:00