Commit Graph

5512 Commits

Author SHA1 Message Date
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
Robert Sayre
abf41f7685 Merge tracemonkey to mozilla-central 2009-05-05 11:36:48 -07:00
Robert Kaiser
783e9416cf bug 316387, followup - copy changes to js/src/config as well to fix JS test bustage 2009-05-05 20:32:59 +02:00
Daniel Holbert
be953ead7a Bug 491325: Redirect stderr of 'cat' to /dev/null in configure.in's check for GCC pipe support. r=ted 2009-05-05 10:54:38 -07:00
Daniel Holbert
f91679f7b6 Bug 478438 trivial follow-up: remove unneeded 'typedef' keyword to fix compile warning. r=bnewman sr=mrbkap 2009-05-04 13:08:48 -07: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
Brendan Eich
b151e17a91 ug 490741 - Crash [@ js_GetUpvar] on datepick (r=mrbkap). 2009-05-02 11:40:22 -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
Blake Kaplan
d17152f491 Bug 487215 - A lambda expression that uses arguments might escape, so don't clear the funarg flag. r=brendan 2009-04-07 15:48:16 -07:00
Jim Blandy
065b4086c2 Bug 469237: Use offsetof instead of a magic constant. r=jorendorff 2009-04-07 15:41:47 -07:00
Jason Orendorff
cbb1d7f51f Merge backout. 2009-04-07 17:07:40 -05:00
Jason Orendorff
a613c0d579 Backout changeset 143e997c858e (bug 484693) because it caused crashes on Mac tinderboxen. 2009-04-07 17:07:11 -05:00
Jason Orendorff
d6c3321108 Merge. 2009-04-07 16:42:38 -05:00
Jason Orendorff
e42a325f6e Bug 487216 - TM: Other builtins that call JS_malloc. r=gal. 2009-04-07 16:26:13 -05:00
Jason Orendorff
d24fe77d94 Backed out changeset e201de53e918 in favor of a different approach. 2009-04-07 16:15:34 -05:00
Graydon Hoare
163d74068e Bug 484693 - Remove uses of alloca, r=gal. 2009-04-07 13:47:36 -07:00
Brendan Eich
c1db7f391d Bug 487251 - imacros.c.out generation fails: Error: .igroup/.end name mismatch (r=mrbkap). 2009-04-07 13:32:24 -07:00
Brendan Eich
2270357832 Bug 487251 - imacros.c.out generation fails: Error: .igroup/.end name mismatch (r=mrbkap). 2009-04-07 13:30:59 -07:00
Robert Sayre
30f9238dfd Merge tracemonkey to mozilla-central. 2009-04-07 13:21:29 -04:00
Jason Orendorff
8978ecf87d Bug 482015 - TM: Assertion failure: cx->bailExit due to _RETRY builtins that call JS_malloc. r=gal, r=igor. 2009-04-07 11:42:50 -05:00
Andreas Gal
4f7fe5afa4 Bug 485959 - TM: Recording continues across loop edge. r=jorendorff 2009-04-07 00:45:49 -07:00
Andreas Gal
ca62b9e9e3 backout Bug 485959, disable-jit bustage. 2009-04-07 03:34:06 -04:00
Andreas Gal
fd3fd2676a Bug 485959 - TM: Recording continues across loop edge. r=jorendorff 2009-04-07 03:25:29 -04:00
Jason Orendorff
32b58a38be Thread-safety comment for bug 479198. r=brendan. 2009-04-06 16:43:45 -05:00
Jason Orendorff
81f9c93dec Bug 479198 - "Deep" property cache entries not invalidated when shadowed (TIBCO General Interface regression). r=brendan. 2009-04-06 13:24:20 -05:00
Brendan Eich
fa172251b0 Bug 481514 - PurgeScopeChain should not deep-bail quite so eagerly (r=jorendorff, a=sayrer). 2009-04-06 13:24:34 -07:00
Brendan Eich
862f9eb6d3 Test for upvar2 dup/dep bug 473271, from comment 8; also remove print noise from testPropagatedFunArgs crash test. 2009-04-06 11:18:10 -07:00
Brad Lassey
073360a19a bug 487515 - PRMJ_Now needs better granularity for panning in fennec r=crowder, robarnold 2009-04-16 12:03:56 -04:00
Brad Lassey
c99035f3ef Bug 392274 - should _tzset on Win32, follow up to fix windows ce bustage r=crowder 2009-04-15 20:14:42 -04:00
Shawn Wilsher
97acb35fee Merging mozilla-central to tracemonkey. Should fix the red on talos tinderbox. 2009-04-15 20:10:48 -04:00
Robert Sayre
cad48ee840 Merge tracemonkey to mozilla-central. 2009-04-15 17:40:19 -04:00
Jim Blandy
c92b04fdc1 Bug 479585: jsfile.cpp and jsgc.cpp fixes for Symbian patch=Harry.Li r=jimb 2009-04-15 14:07:35 -07:00
Brian Crowder
bb79ea7392 Bug 392274 - _tzset on Win32, patch my Mike Perry <mikeperry.unused@gmail.com>, r=crowder 2009-04-15 14:06:39 -07:00
Benjamin Smedberg
c2ec582f57 Fix the PYTHONPATH bits of bug 436062 in a not-hacky way by using a script which can set up the path and then forward to the real script we're trying to run, r=ted 2009-04-15 09:06:09 -04:00
Robert Sayre
f483fe38c9 Merge. 2009-04-14 22:45:25 -04:00
Ben Newman
17a2ceeaca Bug 484107 - XPCSafeJSObjectWrapper allows regexp variables to be clobbered. r=mrbkap+sr=brendan 2009-04-14 19:32:17 -07:00
Robert Sayre
3be11e8591 Merge tracemonkey to mozilla-central. 2009-04-14 12:21:03 -04:00
Ginn Chen
0f7ef1fa64 Back out bug 487602 2009-04-14 17:04:43 +08:00
Ginn Chen
a9f1c99903 Bug 487602 failed to compile firefox on Solaris r=bsmedberg 2009-04-14 16:42:50 +08:00
Arpad Borsos
07dc31e45f Bug 485782 - get rid of nsSupportsArray; r=sicking, sr=bsmedberg 2009-04-14 10:02:58 +02:00
Peter Van der Beken
8a43b9d5cc Fix for bug 486585 ("ASSERTION: bad!" in XPCCallContext::XPCCallContext with feed in frame, gc). r/sr=mrbkap.
--HG--
extra : rebase_source : c0977ba2150e1369b8397c45839058f542510ffd
2009-04-06 14:58:45 +02:00
Robert Sayre
d7754d986a Merge tracemonkey to mozilla-central. 2009-04-07 03:04:17 -04:00
Jacob Bramley
3c4a821492 bug 486675 - always using setError to set _err 2009-04-06 13:32:46 +02:00
Jeff Walden
129dfb1b25 Style nit to kick a red tinderbox and hopefully avoid graph server fail a second time around, r=red this time 2009-04-06 01:06:34 -07:00
Jeff Walden
7bd23208f1 Update trace-test.js jitstats for testThinLoopDemote to account for upvar2, although there's still some wonkiness here being tracked in bug 486820. r=orange 2009-04-05 22:29:18 -07:00
Brendan Eich
ec9f3ae4a0 Another static analysis patch (I hope the last; for 452498). 2009-04-05 21:51:42 -07:00
Brendan Eich
382a5ca261 Remove stale JS_REQUIRES_STACK for js_CloneFunctionObject prototype (452498 followup to fix static analysis tbox). 2009-04-05 21:32:06 -07:00
Brendan Eich
962b187fe5 upvar2, aka the big one take 2 (452598, r=mrbkap). 2009-04-05 21:17:22 -07:00
Robert Sayre
2d22be3f01 Merge tracemonkey to mozilla-central 2009-04-05 21:24:42 -04:00
Jeff Walden
399b60b6e0 More typo fixes to kick some tinderboxen 2009-04-04 23:29:15 -07:00
Jeff Walden
a89f043904 Grammar fix to kick a rando-orange box to green 2009-04-04 19:41:50 -07:00
Jeff Walden
14e879800f Bug 486578 - TM: "Assertion failure: scope->object == pobj" with function, __proto__, length. r=gal 2009-04-04 16:55:51 -07:00
Andreas Gal
fa2e6466b2 Bug 479110 - TM: avoid frequent mismatch exits. r=brendan 2009-04-04 17:23:34 -04:00
Andreas Gal
3c19b8b7fc Merge. 2009-04-04 10:15:04 -07:00
Andreas Gal
706120c0fb Backed out changeset 972c44aa9d1f (bug 452598). 2009-04-04 10:14:52 -07:00
Brendan Eich
7485baa00c Merge. 2009-04-04 10:07:44 +01:00
Brendan Eich
5f4d9ff474 upvar2, aka the big one (452598, r=mrbkap). 2009-04-04 10:05:49 +01:00
Andreas Gal
7a45fb2c9a Merge. 2009-04-04 01:06:18 -07:00
Andreas Gal
8787072e96 Backed out changeset b512be855093 (bug 484693). See bug for details. 2009-04-04 01:06:04 -07:00
Graydon Hoare
377d59d4d8 Typo-fix in comment, cycle unit tester. 2009-04-03 23:01:24 -07:00
Andreas Gal
742aa29f7d TraceRecorder::prop sets stack on some return paths, not on final path (486798, r=brendan). 2009-04-03 19:31:17 -07:00
Graydon Hoare
a2d4d5a779 Bug 484693 - Remove uses of alloca, r=gal. 2009-04-03 16:30:46 -07:00
Igor Bukanov
a572accd66 bug 419662 - nested function definitions must come after destructuring argument initializer. r=mrbkap 2009-04-03 10:02:27 +02:00
Igor Bukanov
f48629a9d6 bug 486139 - removal of JSProperty struct definition. r=mrbkap 2009-04-03 09:53:17 +02:00
Igor Bukanov
09ffabb7a1 bug 485164 - fixing sharp semantic regressions. r=mrbkap 2009-04-03 09:53:02 +02:00
Andreas Gal
a4f3bf56a6 Don't try to abort tracing after a successful compilation (486436, r=brendan). 2009-04-02 14:47:57 -07:00
Jason Orendorff
cd0fe70742 Bug 483179 - TM: JIT embeds stale closure in trace for JSOP_DEFLOCALFUN. r=mrbkap 2009-04-02 14:08:48 -07:00
Igor Bukanov
fdf059f766 bug 486139 - annotating destructuring JSOP_DUP for the decompiler. r=brendan 2009-04-02 16:31:54 +02:00
Benjamin Smedberg
614ee0fc2d Bustage fix from last-minute rework of bug 481350 2009-04-08 10:31:33 -04:00
Benjamin Smedberg
5000827e05 Bug 481350 - Fail when imacros.c.out is out of date, r=jorendorff/ted 2009-04-08 10:18:25 -04:00
Jim Blandy
b34fbbe457 Bug 482743: Compute opcode stack usage correctly. r=igor 2009-04-01 11:02:52 -07:00
Jim Blandy
02252a653d Bug 482743: Fix up bytecode execution tracing. Allow tracing to file. r=igor
js_TraceOpcode: Remember the last bytecode we traced explicitly,
instead of subtracting 'len' from regs.pc, which isn't reliable.
Decline to trace values in script prologues (between 'code' and
'main').  Decline to walk off the bottom of the stack when the 'last
bytecode' is misleading.  Flush the stream after each bytecode.

Use the TRACE_OPCODE macro in both threaded and non-threaded
interpreters.  Take care to make threaded and non-threaded
interpreters produce the same traces.

In the shell's 'tracing' function, use JS_ValueToBoolean to recognize
all sorts of booleans, and treat a string as the name of a file to
write the trace to.
2009-04-01 08:50:57 -07:00
Igor Bukanov
4df05a423c bug 484861 - removal of unsed fields from JSObjectOps. r=mrbkap 2009-04-01 14:32:51 +02:00
Igor Bukanov
7548565a13 bug 486124 - removal of unused TCF_HAS_DEFXMLNS. r=mrbkap 2009-04-01 10:33:43 +02:00
Graydon Hoare
5689ffc3f8 Bug 474529 - Avoid artificial OOM conditions, r=gal. 2009-03-31 20:51:01 -07:00
Graydon Hoare
485f0c5d62 Bug 479553 - Property tree forking heuristic improvement, r=brendan. 2009-03-31 17:55:43 -07:00
Graydon Hoare
3e481f618d Bug 484751 - Followup patch to fix crash in initial checkin, r=mrbkap. 2009-03-31 19:34:32 -07:00
Blake Kaplan
249922d337 printf warning police 2009-03-31 18:38:28 -07:00
Jeff Walden
3e189b0822 Bug 484751 - TM: "Assertion failure: !OBJ_GET_CLASS(cx, proto)->getObjectOps, at ../jsobj.cpp". r=mrbkap 2009-03-31 14:24:01 -07:00
Robert Sayre
6afa909c12 Merge m-c to tracemonkey. 2009-03-31 12:59:36 -07:00
Igor Bukanov
0e62709153 bug 486106 - restoring JS*Lookup API compatibility with fast arrays. r=shaver 2009-03-31 21:42:31 +02:00
Andreas Gal
78ced670dd specialize code for a specific global object, not just a global object shape (480905, r=graydon). 2009-03-31 11:49:44 -07:00
Andreas Gal
bd810801e3 maintain globalShape in VMFragment only (486049, r=graydon). 2009-03-31 11:43:30 -07:00
Jason Orendorff
22f1bdf5d6 Bug 483473 - Make JSObjectOps private. r=brendan.
--HG--
extra : rebase_source : 3240cb1f5c047dc92f8d1b525963bcb27e0a3521
2009-03-31 09:02:20 -05:00
Benjamin Smedberg
b7dbb7cee0 Bug 485264 - Not enough quotes in mozprog.m4 when suggestions contain spaces r=ted 2009-03-31 08:41:50 -04:00
Graydon Hoare
27d0e6f091 Bug 479553 - Minimize forking of property tree, r=brendan. 2009-03-30 18:02:13 -07:00
Andreas Gal
79baa5db23 Guard that object is a dense array when skipping to its prototype during property lookup (485790, r=brendan). 2009-03-30 17:19:04 -07:00
Jeff Walden
c8f309e4e5 Bug 485889 - Incorrect null checking/assignment? (with xpcshell test case). r=gal 2009-03-30 17:15:42 -07:00
Andreas Gal
38b604f834 Bug 485022 - TM: Assertion failure: JS_ON_TRACE(cx), at ../jsarray.cpp. r=mrbkap 2009-03-30 16:43:23 -07:00
Blake Kaplan
3b132823ae Bug 486029 - Use C++ style casts in more places. r=brendan 2009-03-30 16:33:54 -07:00
Peter Weilbacher
3378176bc8 [OS/2] Bug 483539: fix build break in jsnum.cpp by defining the underscored float properties. r=jorendorff 2009-03-30 15:26:51 -07:00
Igor Bukanov
0604ee2935 bug 453492 - hiding JSCodeSpec.(nuses|ndefs) behind inlines to properly deal with variable stack bytecodes. r=brendan 2009-03-30 16:19:50 +02:00
Igor Bukanov
a7851480ad bug 469492 - calling the call hook after fully initializing the freame. r=brendan 2009-03-30 15:29:17 +02:00
Igor Bukanov
d7e8a855d7 bug 426520 - limitting default xml namespace search to var objects as required by e4x. r=brendan 2009-03-30 11:47:46 +02:00
Andreas Gal
4bc6ae59db Bug 482271 - TM: Crash [@ js_AttemptCompilation]. r=graydon 2009-03-29 18:19:09 -07:00
Robert Sayre
d3ae3d827d Merge mozilla-central to tracemonkey. 2009-03-29 10:42:32 -07:00
Robert Sayre
bfa28b2971 Back out Bug 483723 - 'Trace string.indexOf'. It conflicts badly with mozilla-central. 2009-03-29 10:38:18 -07:00
Neil Rashbrook
00a79cf581 Bug 485605 Clean up JS ID code and fix allocators r=mrbkap sr=jag 2009-03-29 12:47:06 +01:00
Serge Gautherie
668db211d7 Bug 479978 - remove references to MOZ_PROFILE from the build system; (Cv2-MC) the 8 files; r=ted.mielczarek 2009-03-28 03:00:25 +01:00
Vladimir Vukicevic
c32792f55e backing out 273c85c827e1 2009-03-27 16:42:49 -07:00
Andrew Paprocki
24b97dd380 Bug 485576 - Fix a few minor gcc warnings. r=igor 2009-03-27 15:45:48 -07:00
Vladimir Vukicevic
2a8f257f6d b=484599; add calling convention tests to trace-tests and js shell; r=mrbkap 2009-03-27 14:35:46 -07:00
Vladimir Vukicevic
eb82870ba4 b=484561; [arm] fix EABI calling convention; clean up asm_call; r=graydon 2009-03-27 14:31:53 -07:00
Vladimir Vukicevic
34105fd15e b=484561; [arm] fix broken LIR_alloc; r=graydon 2009-03-27 14:29:14 -07:00
Vladimir Vukicevic
76a9a61a35 b=484599; TM: memory stomping when a tn called with > 5 args; r=gal 2009-03-27 10:03:14 -07:00
Brian Crowder
a41d08ee47 Bug 485013 - jsdate.cpp AdjustTime() breaks London (GMT+0) dates when DST activates Mar 29 2009 Summary: jsdate.cpp AdjustTime() breaks London (GMT+0) dates when DST activates Mar 29. r=mrbkap 2009-03-26 17:51:50 -07:00
Jeff Walden
69543b2f1f Make js_DumpValue more useful with function jsvals. r=mrbkap 2009-03-26 16:07:54 -07:00
Igor Bukanov
474bffab88 bug 485178 - proper stack limits for scatter threads. r=mrbkap 2009-03-26 17:06:49 +01:00
Igor Bukanov
a184e8f37e Backed out changeset 0b36bddcefe4 for bug 485178 to fix compiletaion errors on some platforms. 2009-03-26 16:14:07 +01:00
Walter Meinl
b2a122ec44 Bug 484287 - [OS/2] simplify test_os2.cmd; r=mozilla@Weilbacher.org 2009-03-27 00:45:15 +01:00
Igor Bukanov
5652e9c9b3 bug 485178 - proper stack limits for scatter threads. r=mrbkap 2009-03-25 19:06:31 +01:00
Igor Bukanov
0a955fa410 bug 426162 - allow calling JS_DestroyContext when cx->thread is null for API compatibility. r=brendan 2009-03-25 16:41:17 +01:00
Igor Bukanov
f51ef2ceec bug 375406 - PutProperty E4X correctness fix. r=brendan 2009-03-25 16:02:29 +01:00
Igor Bukanov
1e3ba71db4 bug 484769 - fixing the assert about the structure of sharp nodes. r=brendan 2009-03-25 16:01:29 +01:00
Ben Turner
01022c4478 Bug 483723 - 'Trace string.indexOf'. r=brendan+gal. 2009-03-24 21:32:09 -07:00
Ben Turner
7660fa19f9 Bug 484796 - 'Add properties with getters and setters to the shell'. r=gal. 2009-03-24 21:30:23 -07:00
Jeff Walden
61e8b53f29 Add a static assertion for another latent LIR opcode numbering constraint. No bug, r=mrbkap 2009-03-24 14:11:14 -07:00
David Mandelin
f55fd129f7 fix static analysis. r=gal 2009-03-24 12:56:13 -04:00
Igor Bukanov
b5f624afd6 forcing tinderbox re-run to check if bug 437325 indeed caused Windows orange 2009-03-24 15:50:39 +01:00
Robert Sayre
28f2de0e25 Merge tracemonkey to mozilla-central. 2009-05-01 09:21:19 -07:00
timeless@mozdev.org
b8ace0c61f Bug 485868 - Remove code duplication in xpcjsruntime.cpp.
Fixing XPC_TRACK_DEFERRED_RELEASES build bustage (DEBUG_timeless)
2009-04-30 18:50:24 +02:00
timeless@mozdev.org
7147aba324 Bug 485868 - Remove code duplication in xpcjsruntime.cpp.
Fixing XPC_TRACK_DEFERRED_RELEASES build bustage (DEBUG_timeless)
2009-04-30 16:43:32 +03:00
Brendan Eich
bb988135b0 Bug 375250 - Reject (JSON is fixed now) E4X masquerading as JS source (r=igor/mrbkap). 2009-04-29 16:48:35 -07:00
Robert Sayre
33a65e9684 Merge tracemonkey to mozilla-central. 2009-04-28 20:33:18 -04:00
Serge Gautherie
c48e572e3f Bug 485736 - Add (TUnit) 'xpcshell-tests' |make| target, using |runxpcshelltests.py| new '--manifest' option; (Iv1a-MC) Update '.PHONY' target too; r=ted.mielczarek 2009-04-29 00:57:48 +02:00