Commit Graph

5420 Commits

Author SHA1 Message Date
Andreas Gal
b3ec5b0f4d Abort trace if the global object gets wrapped and we already hold a reference to the unwrapped object (489007, r=brendan). 2009-04-20 11:30:32 -07:00
Andreas Gal
26a670957d Remove bogus assert (489040, r=brendan). 2009-04-20 09:52:56 -07:00
Igor Bukanov
4ad2e764fa bug 488414 - js_GenerateShape just schedules, not run, the GC. r=brendan,gal 2009-04-20 12:10:29 +02:00
Igor Bukanov
fd49b19773 Backed out changeset f4662701526b (bug 488414) to fix !JS_THREADSAFE compilation errors 2009-04-20 11:59:36 +02:00
Igor Bukanov
56547f8087 bug 488414 - js_GenerateShape just schedules, not run, the GC. r=brendan,gal 2009-04-20 10:17:28 +02:00
Jeff Walden
f10c82d6e3 Kick tinderboxen out of a Linux orange that looks bogus 2009-04-18 22:09:37 -07:00
Jeff Walden
628e407f3f Bug 488781 - Followup readability fix to rearrange the ordering of cases in various type-switch statements to correspond to numeric values; this makes it much easier (for me at least) to see that such switches are properly exhaustive. r=gal 2009-04-18 16:47:24 -07:00
Jeff Walden
830e81a336 Bug 488781 - Add a trace-time type to differentiate functions from objects. r=brendan 2009-04-18 16:47:23 -07:00
Jeff Walden
c9680230c4 Bug 473117 - Rejigger how guards use side exits, and fix an erroneous comment. r=graydon 2009-04-18 16:47:23 -07:00
Igor Bukanov
ba556afe6d bug 487039 - caching only white-listed non-globals on the scope chain. r=brendan 2009-04-18 20:10:59 +02:00
Igor Bukanov
ac71be6d66 bug 487204 - NativeGet caching fixes. r=brendan 2009-04-18 19:56:53 +02:00
David Mandelin
e57983f598 Bug 488808: crash due to JSString INIT macros stomping deflated flag, r=brendan 2009-04-17 19:30:26 -07:00
Andreas Gal
ffd13ceb8b During trecording detect null 'this' object before wrapping it (488816, r=brendan). 2009-04-17 19:24:54 -07:00
Robert Sayre
dc86a73387 Merge mozilla-central to tracemonkey. 2009-04-17 21:35:32 -04:00
Blake Kaplan
38b83aefae Bug 485868 - Remove code duplication in xpcjsruntime.cpp. r=jst sr=brendan
--HG--
extra : rebase_source : 68dbe531ff1dca8b436ae938be763ff3921a1c9a
2009-04-17 16:52:15 -07:00
Blake Kaplan
da5b280a51 Bug 484180 - Don't call the class getter (especially not the scriptable helper!) for functions. r+sr=jst
--HG--
extra : rebase_source : 15e927e3a4281a0d5ffd54b528c9c90c76b7c6ee
2009-04-17 16:52:10 -07:00
Jason Orendorff
cc87745ec4 Bug 488693 - TM: "Assertion failure: !JS_TRACE_MONITOR(cx).needFlush, at ../jstracer.cpp". r=gal.
--HG--
extra : rebase_source : 4ff76dfc6418e818c7cabba6a7d87e5b49123540
2009-04-17 18:22:16 -05:00
Graydon Hoare
f97341fdf6 Bug 488363 - Missing write barrier on global object, r=jorendorff. 2009-04-17 15:25:25 -07:00
Andreas Gal
adc0da147c Merge. 2009-04-17 12:44:37 -07:00
Andreas Gal
da0094a55c Backed out changeset 324bb9dc8372 (bug 487204 is implicated in top site failures). 2009-04-17 12:41:00 -07:00
Blake Kaplan
f4e59bf91a Bug 479560, r+sr=jst 2009-04-17 12:41:42 +01:00
Andreas Gal
6520b20732 Backed out changeset 5bd116148175 (attempting to re-land bug 487204). 2009-04-16 17:56:18 -07:00
Andreas Gal
3b10c56019 Backed out changeset d1a4ee3d0c59 (bug 487204, due to possible leak). 2009-04-16 12:19:24 -07:00
Jason Orendorff
390c860d16 Fix "unused variable tm" warning I introduced a few days ago. No bug#, r=shaver. 2009-04-15 19:44:25 -05:00
Jason Orendorff
b02039ae3d Merge backout. 2009-04-17 14:17:21 -05:00
Jason Orendorff
e021a73170 Backed out changeset a6071b1aa626 due to trace-test.js failures. 2009-04-17 14:16:56 -05:00
Jason Orendorff
e62f4c079b Fix static-analysis-tracemonkey burning due to a6071b1aa626. 2009-04-17 11:22:57 -05:00
Jason Orendorff
2e2f8535f0 Bug 488693 - TM: "Assertion failure: !JS_TRACE_MONITOR(cx).needFlush, at ../jstracer.cpp". r=gal. 2009-04-16 18:28:57 -05:00
Igor Bukanov
b59b15388d bug 487546 - updating the tests to rfelect the new restriction on the maximum string length. r=bclary 2009-04-17 14:37:53 +02:00
Igor Bukanov
94a3d7329c bug 487930 - removal of JSSLOT_ARRAY_LOOKUP_HOLDER. r=mrbkap 2009-04-17 11:37:59 +02:00
Brendan Eich
fc377191d1 Bug 488802 - Crash at [@js_Interpret] on YOMIURI ONLINE (r=mrbkap). 2009-04-16 23:35:58 -07:00
David Mandelin
9c8203f872 Bug 487546 fixup: adding needed macro parens 2009-04-16 19:06:11 -07:00
David Mandelin
803163441c Bug 487546: Fix shell bustage, r=brendan 2009-04-16 17:23:43 -07:00
David Mandelin
874ab2823f Bug 487546: avoid unnecessary js_PurgeDeflatedStringCache calls, additional patch to address igor's review issues, r=igor 2009-04-16 16:23:46 -07:00
Andreas Gal
d9f8074374 Be less paranoid about jit stats for testNestedExitStackOuter since it doesn't seem to be stable. 2009-04-16 16:01:27 -07:00
Andreas Gal
34e554c496 Merge. 2009-04-16 15:56:46 -07:00
Andreas Gal
4fae4b8ce2 When allocating strings, only report error if we can leave trace, otherwise just return NULL (488764, r=jwalden). 2009-04-16 15:56:24 -07:00
Andreas Gal
5b284aaa5a Remove unsafe RegExp.test traceable native, the generic fast native mechanism can take care of it (488703, r=jorendorff). 2009-04-16 15:34:14 -07:00
Igor Bukanov
80295c64d7 bug 488699 - proper rooting of DeclEnv instance. r=brendan 2009-04-17 00:26:26 +02:00
David Mandelin
beb147a958 Bug 487546: call expensive JSString finalizers only if needed, r=brendan 2009-04-16 15:00:13 -07:00
Andreas Gal
51c5e8d189 Properly calculate 'this' object on trace and side exit if we have to wrap (488203, r=mrbkap,jorendorff). 2009-04-16 12:21:45 -07:00
Andreas Gal
c6e4da316b Backed out changeset 062ea62f9bda (backed out bug 488203 again). 2009-04-16 12:18:46 -07:00
Andreas Gal
69d6e84fc4 Backed out changeset 64d7df1fe160 (re-landing 488203). 2009-04-16 10:16:14 -07:00
Andreas Gal
a943161ace Backed out changeset e8c23c42db7f (bug 488203) to see whether it causes the leak. 2009-04-16 10:07:53 -07:00
Andreas Gal
53d87f13a2 Properly calculate 'this' object on trace and side exit if we have to wrap (488203, r=mrbkap). 2009-04-15 17:54:37 -07:00
Igor Bukanov
5836717df3 bug 487204 - avoiding extra locks for js_Native(Get|Set). r=brendan 2009-04-16 02:36:14 +02:00
Igor Bukanov
907592f765 bug 477627 - avoiding deadlocks in ClaimTitle. r=brendan 2009-04-16 00:01:24 +02:00
Igor Bukanov
30ebeb6d1d merge after backout for bug 480301 2009-04-15 23:34:59 +02:00
Igor Bukanov
e2941e5370 Backed out changeset f97f196dcb58 - bug 480301 needs more work 2009-04-15 23:33:46 +02:00
Andreas Gal
05faccf228 Backed out changeset d1a4ee3d0c59 due to build fail, test fail, and perf regressions. 2009-04-15 14:20:52 -07:00
Igor Bukanov
577cb23ac0 bug 487204 - avoiding extra locks for js_Native(Get|Set). r=brendan 2009-04-15 21:13:27 +02:00
Jason Orendorff
4dd9ad09ef Bug 487845 - TM: After deep-bailing, we can lirbuf->rewind() and then return to a dead code page. r=gal.
--HG--
extra : rebase_source : b7de71b526d45c7caed1982fba80c65763a0a9c6
2009-04-15 09:47:02 -05:00
Brendan Eich
237a2b7d5a Bug 488421 - Crash [@ js_ValueToString] or Crash [@ js_ValueToBoolean] or "Assertion failure: slot < fp->script->nslots, at ../jsinterp.cpp" (r=mrbkap). 2009-04-15 10:49:11 -07:00
Brendan Eich
9d4a42aeba Bug 488475 - "Assertion failure: \!(pn->pn_dflags & flag), at ../jsparse.h" (r=me). 2009-04-15 09:30:46 -07:00
Igor Bukanov
95c0598199 bug 488285 - fixing strict mode warnings with DOm window object. r=brendan 2009-04-15 16:09:58 +02:00
Brendan Eich
7b9f2ffb1f Bug 488015 - Crash [@ js_GetUpvar ] (also bogus JS errors, also probably Crash [@js_Interpret]) (future r=mrbkap, see bug). 2009-04-15 01:57:13 -07:00
Andreas Gal
4c09e7eb02 Backed out bug 488203. 2009-04-14 23:44:34 -07:00
Andreas Gal
7567cbb762 Merge. 2009-04-14 21:28:57 -07:00
Andreas Gal
c11974bb60 Backed out changeset 4c157cfe2289 (bug 487845). 2009-04-14 21:28:40 -07:00
Andreas Gal
6160744b13 Add missing FASTCALL declaration. 2009-04-14 20:54:22 -07:00
Andreas Gal
5f739a7156 Fix static analysis. It is ok for ComputeThis_tn to see a stale cx->fp since we just want to ensure the global object is wrapped. 2009-04-14 20:15:43 -07:00
Andreas Gal
e01cfd34c3 Properly compute 'this' object on trace and wrap if necessary (488203, r=mrbkap). 2009-04-14 19:52:09 -07:00
Brendan Eich
8f9886f858 Bug 488272 - Crash [@ RebindLets] (r=mrbkap). 2009-04-14 17:52:13 -07:00
Brendan Eich
898204a579 Back out bad patch for 488272. 2009-04-14 17:20:12 -07:00
jorendorff
7a9b1b6e92 Leaving outermost request should js_LeaveTrace (480301, r=brendan). 2009-04-14 17:15:38 -07:00
Jason Orendorff
a68535ead5 Bug 487550 - "Assertion failure: cx->bailExit" with {__proto__: window}. r=brendan. 2009-04-14 16:59:55 -05:00
Brendan Eich
288ee8ccdd Bug 488272 - Crash [@ RebindLets] (r=mrbkap). 2009-04-14 11:34:05 -07:00
Blake Kaplan
b008d59d4c Bug 487430 - call_enumerate doesn't take upvars into account. r=brendan 2009-04-14 11:29:34 -07:00
Jason Orendorff
0616f91d10 Bug 487845 - TM: After deep-bailing, we can lirbuf->rewind() and then return to a dead code page. r=gal. 2009-04-14 08:45:37 -05:00
Igor Bukanov
225dc1322f bug 488029 - fixing bindname optimization regression from the bug 462734 plus creating js_DeclEnvClass instances together with Call objects. r=brendan 2009-04-14 12:54:37 +02:00
Brendan Eich
848fbcd8ef Bug 488050 - upvar2: incorrect optimization of delete function_name (r=igor). 2009-04-13 17:13:21 -07:00
Andreas Gal
2866c6d091 Remove amd64 code (will be replaced with tamarin's new amd64 backend, 487981, r=danderson). 2009-04-13 16:16:10 -07:00
Jeff Walden
b282a2b89b Import http://hg.mozilla.org/mozilla-central/rev/a94142e82a0d to TM since it seems to be horking my shell builds (but not a browser build? odd, I thought I'd tested both) 2009-04-11 15:01:17 -07:00
Brendan Eich
025b3510e0 Bug 487968 - TM: shutdown leak of rt->builtinFunctions (r=jorendorff). 2009-04-13 14:22:01 -07:00
Brendan Eich
a83511d2b1 Bug 488034 - Crash [@ js_GetUpvar] or "Assertion failure: (script)->upvarsOffset != 0, at ../jsinterp.cpp" (r=mrbkap). 2009-04-13 14:16:15 -07:00
Andreas Gal
c62dc9de92 Update ip in recycled branch fragments (487531, r=graydon). 2009-04-13 13:24:17 -07:00
L. David Baron
c7409a6be6 Fix occasional leak of either array or hashtable entrystore allocated in js_AddLocal by accounting for fun->u.i.upvars in DestroyLocalNames. (Bug 487967) r=brendan 2009-04-11 16:03:13 -07:00
Igor Bukanov
6da0ea9b5e bug 462734 - fixing JSOP_BINDNAME caching issues. r=brendan 2009-04-11 10:11:06 +02:00
Igor Bukanov
d738892163 Backed out changeset 595ebe7b82fa - it had wrong patch 2009-04-11 10:07:42 +02:00
Igor Bukanov
de22fe3e47 bug 462734 - fixing JSOP_BINDNAME caching issues. r=brendan 2009-04-11 10:04:24 +02:00
Jeff Walden
61aee1746d Bug 473096 - js1_5/Regress/regress-366601.js - Internal Error: script too large. r=brendan 2009-04-10 17:41:13 -07:00
Blake Kaplan
1c5e6afeac Bug 487684 - Store the last trace PC to pass into the decompiler. r=igor 2009-04-10 14:06:28 -07:00
Igor Bukanov
fd755722cc bug 486713 - fixing flag propagation to generator expression function. r=brendan 2009-04-10 20:50:47 +02:00
Brendan Eich
c77da042f2 Fix JS_LONE_INTERPRET-mislocated js_GetUpvar prototype (487563). 2009-04-09 19:19:21 -07:00
Brendan Eich
26a5b7f3fc Bug 487563 - Crash [@ js_Interpret] (r=mrbkap). 2009-04-09 18:44:54 -07:00
Robert Sayre
c05dbc60ec Merge mozilla-central to tracemonkey. 2009-04-09 21:24:00 -04:00
Jason Orendorff
b5d4ba583e Bug 487676 - Nesting deep-aborting trace calls don't work. r=gal.
--HG--
extra : rebase_source : 436164485bd5e981e5ae8997eed2c371f3ecd77b
2009-04-09 18:07:00 -05:00
Jason Orendorff
e8a9ce3fda Bug 487413 - Delete unnecessary fast natives in js shell. r=gal.
--HG--
extra : rebase_source : f9bddb69e037871b9b3b85bf8ab6e181f771bab9
2009-04-09 16:30:10 -05:00
Brendan Eich
e29805bd5a Bug 487561 - More cleanup from bug 452498 and bug 487271 patches (r=mrbkap/igor, and this fixes bug 487570). 2009-04-09 15:05:12 -07:00
Jim Blandy
89a4b5bcff Bug 469237: Avoid warnings in jstracer.cpp. r=igor
../jstracer.cpp: In member function ‘void TraceRecorder::guard(bool, nanojit::LIns*, nanojit::LIns*)’:
../jstracer.cpp:2301: warning: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘nanojit::SideExit*’
../jstracer.cpp: In function ‘bool js_AttemptToExtendTree(JSContext*, VMSideExit*, VMSideExit*, jsbytecode*)’:
../jstracer.cpp:3624: warning: suggest parentheses around ‘&&’ within ‘||’
2009-04-09 13:10:22 -07:00
Jim Blandy
1d133ec6ba Bug 469237: Assert that we never add properties to lexical blocks. r=igor 2009-04-09 13:07:27 -07:00
Brendan Eich
b9323a1394 Bug 487209 - erroneous redeclaration of let ... with try {...} catch(e) {var e...} (r=mrbkap). 2009-04-08 18:42:20 -07:00
Brendan Eich
0b6ed95284 Bug 487538 - bug 487271 left three tests broken in its wake (r=mrbkap). 2009-04-08 18:27:44 -07:00
Jeff Walden
0582793992 Bug 487534 - TM: "Assertion failure: JSVAL_IS_NULL(v)" with function/regexp used as index. The other half of bug 484120, poorly reviewed by me -- no soup for me! r=graydon 2009-04-08 17:45:17 -07:00
Brendan Eich
3f4a58e4f0 Bug 487271 - Crash [@ js_Invoke ], and missing google-maps background, at padmapper.com (r=mrbkap). 2009-04-08 13:14:02 -07:00
Robert Sayre
e45bf4929a Merge tracemonkey to mozilla-central. 2009-04-08 23:55:18 -04:00
Brendan Eich
240c326a21 Bug 487320 - named function objects can escape without detection by the upvar analysis (r=mrbkap). 2009-04-07 17:10:33 -07:00
David Mandelin
ab16a824b1 Bug 487173: Making undefined use stub getter/setter so use of global undefined can be traced, r=mrbkap 2009-04-07 17:01:20 -07:00
Robert Sayre
51f43ccd72 Merge mozilla-central to tracemonkey. 2009-04-07 19:04:17 -04:00
Andreas Gal
f7f0ad16bc Bug 484693 - Cap size of global object, r=graydon. 2009-04-07 15:53:08 -07:00