Commit Graph

13247 Commits

Author SHA1 Message Date
Bill McCloskey
f7c5d49018 Bug 660778 - Deal with stack overflow in UnmarkGrayChildren (r=gal) 2011-06-03 13:08:21 -07:00
Nicholas Nethercote
f54b0fa19d Bug 546477 - add explicit/js/stack memory reporter. r=luke. 2011-06-02 19:40:57 -07:00
Phil Ringnalda
0344c24e80 Interim bug 660497 bustage fix, use $(OS_TARGET) until ANDROID is usable as a makefile define 2011-05-28 20:25:30 -07:00
Luke Wagner
6beaae8ad4 Dial down recursion in new test added by abd2dcd555f4 so as to not chew up so much C stack when the mjit is disabled (r=orange) 2011-06-02 18:39:48 -07:00
Luke Wagner
07c939e83e Bug 538293 - remove inlineCallCount and this STACK_QUOTA silliness (r=dvander)
--HG--
extra : rebase_source : 724910c67423b0720ca5c3732699bca4d64324ef
2011-05-27 18:15:39 -07:00
Luke Wagner
a710729944 Bug 656171 - Just remove this mutual subsumption assertion; with document.domain it's not strictly true (r=mrbkap)
--HG--
extra : rebase_source : 78247eba80e9196c929d9136273557faa717407c
2011-06-02 16:35:31 -07:00
Bill McCloskey
c23838f371 Fix jstest timeouts caused by patch for bug 650978 2011-06-02 15:07:01 -07:00
Gregor Wagner
9ce0f0d1ba Bug 660329 - GC: add reason for GC to GCTimer. r=igor 2011-06-02 13:02:21 -07:00
Brian Hackett
a804aa88fe Fix bug 650673, r=dmandelin. 2011-06-02 12:22:39 -07:00
Igor Bukanov
8e11a702b7 bug 656261 - followup to fix compilation warning 2011-06-02 19:36:59 +02:00
Paul Biggar
0a66b46e25 Bug 660668: Fix Shape::search() assertion after OOM (r=nnethercote)
Shape::search() assumes hasTable() will be false if Shape::search() OOMs - make it so.
2011-06-02 10:06:36 -07:00
Paul Biggar
459861e42c Bug 660630: Only error once in OOM in NewCompartment (r=igor) 2011-06-02 10:06:36 -07:00
Paul Biggar
c333f22f78 Bug 660610: Don't double-free execAlloc_ after OOM. (r=nnethercote) 2011-06-02 10:06:36 -07:00
Jason Orendorff
31ddc5e1a2 JS_SetDebugModeForCompartment: Instead of asserting that enabling debug mode is safe, check and throw if it is not. The change to AllFramesIter in Stack.cpp is by luke, r=me. 2011-05-26 14:54:47 -05:00
Jason Orendorff
da325ab3b1 Add a few bits to frame.arguments tests. 2011-05-26 12:13:45 -05:00
Jason Orendorff
20c7510a95 Add Debug.Frame.prototype.evalWithBindings. 2011-05-25 15:21:53 -05:00
Jason Orendorff
0305e45450 Merge from tracemonkey to jsdbg2. 2011-05-25 17:52:35 -05:00
David Mandelin
216d4906f0 Bug 625600 followup: attempt to fix Android build 2011-05-25 14:50:59 -07:00
David Mandelin
508233ea30 Backout merge 2011-05-25 14:50:23 -07:00
David Mandelin
bd6d662fa8 Backed out changeset 6f4ca81b13d5 -- was temporary diagnostic 2011-05-25 14:50:07 -07:00
David Mandelin
4a0a44b095 Diagnostic for failing Android build 2011-05-25 13:27:24 -07:00
Tom Schuster
34b477e3fa Bug 608823. Speed up bitops on doubles. r=dvander 2011-05-25 16:26:26 -04:00
Jim Blandy
7de01aa386 There's no point in cleaning up a Debug::objects table that belongs to a dead Debug object. 2011-05-25 10:51:39 -07:00
Jason Orendorff
175b41ed1d Two passing tests: Debug objects do not keep debuggee globals alive; and addDebuggee does not assert if the target compartment is not in debug mode. 2011-05-24 22:56:09 -05:00
Jason Orendorff
64b6e6d5fa Tabs to spaces in a few tests. 2011-05-24 17:21:27 -05:00
Jason Orendorff
6f66be332e Add Debug.Object.prototype.call. 2011-05-24 17:12:43 -05:00
Jim Blandy
268797552b Use form feeds above major section header comments, for easier navigation with Emacs. 2011-05-24 14:12:19 -07:00
Jim Blandy
cae40a475f Don't mark objects from a Debug's ephemeral tables unless the Debug itself has been marked. 2011-05-24 13:52:05 -07:00
Jason Orendorff
68af1802ce Make frame.arguments live. 2011-05-24 14:31:39 -05:00
Jason Orendorff
e5bb78e4c4 Fix Debug.Object.prototype.name to return undefined if the object is not a function or is a nameless function.
--HG--
extra : rebase_source : 1143095edd69ef1dd69c63e09cd9ac5a0e574744
2011-05-23 17:07:26 -05:00
Jim Blandy
75cd459ff4 Clarify comments on 'this' checks that forbid the each class's prototype object. 2011-05-23 15:26:27 -07:00
Jim Blandy
041108b07b Make check for valid resumption value a bit more legible. 2011-05-23 15:01:24 -07:00
Jim Blandy
fd054f5c39 jsdbg.cpp: Implement Debug.Object.prototype.parameterNames. Add tests. Also, change DebugObject_getName to follow return-on-error conventions. 2011-05-23 14:53:04 -07:00
Jim Blandy
db390bcad3 jsdbg.cpp (Debug::getScriptFrame): check for null return from NewDenseAllocatedArray at the right time. 2011-05-23 14:53:02 -07:00
Jim Blandy
955c78e71d jsdbg.cpp (THIS_DEBUGOBJECT_REFERENT): Don't duplicate the assertion done immediately before in THIS_DEBUGOBJECT_CCW. 2011-05-23 14:52:58 -07:00
Jason Orendorff
71ec7eff2c Fix non-debug-mode assertion in addDebuggee. 2011-05-23 16:47:27 -05:00
Jason Orendorff
e32d873c7d Add Debug.prototype.{add,remove,has}Debuggee and .getDebuggees.
--HG--
rename : js/src/jit-test/tests/debug/debuggees-01.js => js/src/jit-test/tests/debug/Debug-debuggees-12.js
2011-05-23 16:28:45 -05:00
Jason Orendorff
736650fc34 Rename add/removeDebuggee -> add/removeDebuggeeGlobal, ahead of landing Debug.prototype.add/removeDebuggee. 2011-05-23 14:27:10 -05:00
Jason Orendorff
dcb812f27f Add error reporting in Debug::addDebuggee. Oops. 2011-05-23 14:13:37 -05:00
Jason Orendorff
00e9563477 Internal support for multiple debuggees. No API is exposed yet. 2011-05-23 13:38:02 -05:00
Jason Orendorff
5323e5a91c Debuggees are globals, not compartments. 2011-05-23 11:11:09 -05:00
Igor Bukanov
19e8c49c32 bug 658864 - preventing GC when reporting OOM on other threads. r=anygregor
--HG--
extra : rebase_source : 611b09f30000688eba161b12803b1ca44d7adbab
2011-05-22 20:50:08 +02:00
Jason Orendorff
2e05c87e09 Require the CCW slot of a Debug.Object object to contain an actual cross-compartment wrapper. That way, per-compartment GC never collects referents, simplifying sweep phase. 2011-05-21 00:40:33 -05:00
Jason Orendorff
c9f9f65104 Fix a few bugs in exception handling and the throw hook. Make Debug::parseResumptionValue and Debug::handleUncaughtException reliably call ac.leave(). 2011-05-20 22:59:06 -05:00
Jason Orendorff
0f18ea74aa Fix up treatment of Debug.Frame objects during GC. Frames were not being marked properly during Debug::trace and were being swept from the table during Debug::sweepCompartment. 2011-05-20 16:12:26 -05:00
Jason Orendorff
8d48b54691 Merge from tracemonkey to jsdbg2. 2011-05-20 11:34:31 -05:00
Jason Orendorff
7250015a19 Passing GC test. I almost landed some code that segfaults on this one. 2011-05-20 11:05:31 -05:00
Jason Orendorff
8853451dc8 Two little bugs: Destroy the C++ js::Debug object when the JS Debug object is finalized; and generate the right error message when not enough arguments are passed. 2011-05-20 11:04:12 -05:00
Rafael Ávila de Espíndola
f9339f6813 b=661145, r=bsmedberg Move the function declarations passed to AC_TRY_COMPILE out of the body of main. 2011-06-03 16:34:42 -04:00
Mike Hommey
df686a06f3 Bug 626035 - Modify the way arm compiler flags are set in configure. r=ted 2011-06-03 01:49:28 +02:00
Mike Hommey
1cb5d6d328 Bug 658251 - Fix MK{,C}SHLIB when using wrap-malloc. r=ted 2011-06-03 01:27:07 +02:00
Igor Bukanov
3e2ef6c4ef bug 656261 - better GC arena layout. r=wmccloskey 2011-05-19 21:01:08 +02:00
Bill McCloskey
b902b98248 Bug 650978 - Add gczeal setting to GC on every allocation (r=gwagner) 2011-06-01 17:48:52 -07:00
Bill McCloskey
719f0678e9 Bug 652985 - Use off-the-books malloc in DumpHeap (r=pbiggar) 2011-06-01 17:48:02 -07:00
Makoto Kato
634f7d1946 Bug 660591 - Bug 625600 causes bustage on Win64. r=dmandelin 2011-06-01 14:05:36 +09:00
Justin Lebar
be822c8496 Bug 660930 - Force InlineGetProp to be inlined. r=dmandelin 2011-05-31 19:57:36 -04:00
Igor Bukanov
875a4ed0e8 bug 660430 - do not call the security manager during GC-marking of GC wrappers. r=gal 2011-05-30 21:36:16 +02:00
Luke Wagner
b99eb46ea1 Fix jit_test.py so that -g works again (rs=dmandelin) 2011-05-27 18:19:14 -07:00
Gregor Wagner
cbb17d528d Bug 658041 - Stack based marking for JSRopes. r=igor 2011-05-27 15:17:47 -07:00
David Mandelin
88e2fc9186 Remove some stray Ctrl-M characters 2011-05-27 14:05:05 -07:00
timeless@mozdev.org
c18f5ac818 Bug 619794 DECOMPILE_CODE leaks xval on failure in Decompile
r=jorendorff
2011-05-27 10:58:28 -07:00
timeless@mozdev.org
0333a7ce54 Bug 620251 js_CurrentThread and friends should have AndLockGC in their name
r=jorendorff
2011-05-27 10:58:26 -07:00
timeless@mozdev.org
ba16ed7739 Bug 621153 Add JS_ALWAYS_TRUE markers to ValueToNumber() for cases where it should be so
r=jorendorff
2011-05-27 10:58:22 -07:00
Jan de Mooij
ef0a847b87 Bug 624298 - Add an IC for JSOP_CALLNAME. r=dvander 2011-05-27 13:56:11 +02:00
Luke Wagner
bf3e38e9d2 Bug 656490 - Fix direct-eval assert (r=dmandelin) 2011-05-26 17:23:21 -07:00
Jim Blandy
e3210dd972 Implement Debug.Frame.prototype.constructing accessor. 2011-05-19 11:28:28 -07:00
David Mandelin
7b38f467cb Bug 652054: tweak register allocation for 64-bit stores, r=njn 2011-05-19 10:55:36 -07:00
Igor Bukanov
82d8e149da bug 601234 - followup to restore tolerance of calling the allocator during the GC. 2011-05-19 15:34:37 +02:00
Igor Bukanov
397237b2b1 Backed out changeset 869479a8d3c8 - patch for bug 656261 caused jsreftest failure on Windows in the browser. 2011-05-19 00:59:19 +02:00
David Mandelin
2299c54162 Bug 656282: Remove redundant declaration that causes an MSVC warning, r=luke
--HG--
extra : rebase_source : 42c6e9594f36fd7320bdea90fdb01c955bf07f4d
2011-05-16 16:17:19 -07:00
Chris Leary
8a58ce9072 Bug 657537: clean up jschar inflation/deflation. (r=Waldo) 2011-05-26 15:50:05 -07:00
Jim Blandy
6f5851edb8 (no bug): Fix comments referring to allocation policies defined in jstl.h --- they're now in jsalloc.h. 2011-05-26 10:55:58 -07:00
Jason Orendorff
7391514a0e Fix Debug.Frame.prototype.older to skip non-debuggee stack frames. 2011-05-16 17:56:22 -05:00
Jason Orendorff
001c42745d Merge from tracemonkey to jsdbg2. This merge reveals a bug in DebugFrame_getOlder, to be fixed separately. 2011-05-16 17:50:52 -05:00
Jason Orendorff
7c3110a076 Make the throw hook tests pass in the methodjit. Add a simpler version of one of the tests.
--HG--
rename : js/src/jit-test/tests/debug/hooks-throw-02.js => js/src/jit-test/tests/debug/hooks-throw-03.js
rename : js/src/jit-test/tests/debug/hooks-throw-03.js => js/src/jit-test/tests/debug/hooks-throw-04.js
2011-05-16 17:20:04 -05:00
Michael Wu
8676e7fece Bug 648022: Backout bug 518230 due to startup crashes, r=igor 2011-05-16 09:20:40 -07:00
Jeff Walden
cb616455f0 Bug 658069 - Rename GlobalObject::isEvalAllowed to indicate its actual meaning better. r=mrbkap 2011-06-10 11:44:16 -07:00
Jeff Walden
d255c9a807 Bug 660438 - Update tracer for changed [[DefaultValue]] semantics to fall back for not-callable, not for not-primitive. r=luke 2011-05-31 11:10:19 -07:00
Jason Orendorff
3cde4b2dce Add Debug.prototype.getYoungestFrame. 2011-05-13 22:08:26 -05:00
Jason Orendorff
419d31fd9b Add support for dbg.hooks.throw. 2011-05-13 17:56:17 -05:00
Chris Leary
4d1fba5db8 Merge mozilla-central and tracemonkey. 2011-05-13 15:06:53 -07:00
Luke Wagner
e25124700b Bug 659462 - remove no-op JS_ClearNewbornRoots and uses in xpconnect (r=mrbkap) 2011-05-13 08:56:25 -07:00
Paul Biggar
a860fb2d95 Bug 634711 - Use nanojit::BitSet instead of avmplus::BitSet. r=nnethercote. 2011-05-25 22:47:49 -07:00
Nicholas Nethercote
0a71cf8b26 Update nanojit-import-rev stamp. 2011-05-25 20:32:19 -07:00
Nicholas Nethercote
d1a041757e Bug 634711: add BitSet::resetAndAlloc(). r=pbiggar.
--HG--
extra : convert_revision : 8eec2117b714ec754c483b681acb3737f63b994c
2011-05-25 19:46:02 -07:00
Makoto Kato
a365c30cae Bug 576247 - asm_stkarg not implemented for x86_64. r=edwsmith
--HG--
extra : convert_revision : 6176f4f11b273ddde0de661a2c2de0d2219515b2
2011-05-25 17:37:27 +09:00
Paul Biggar
998c7234fe Bug 634711 - Remove BitSet implementation from avmplus.h, because it's a duplicate of the one in Containers.h. r=nnethercote.
--HG--
extra : convert_revision : 8bf26319d7f15c6d22d69557d8b6d95ff65cd381
2011-05-23 21:47:43 -07:00
Ed Morley
08e3b18da0 Bug 656017 - Re-remove WinCE ifdef from js/src/vprof/vprof.cpp (was incorrectly added by bug 644900). r=jorendorff.
--HG--
extra : convert_revision : b6b89f27651adcc38be57ef25357ccc1d2e9ea8e
2011-05-23 21:13:06 -07:00
William Maddox
9be8135422 Bug 658389 - Make sure branch and delay slot remain contiguous in function epilogue [chris@mips.com] (r=wmaddox)
--HG--
extra : convert_revision : 9ffbe7d3623c705593139412b82a79ba87786d08
2011-05-23 11:46:21 -07:00
Jacob Bramley
0ebf6f47d9 When NJ back-tracks _nIns in the ARM back-end, back-track _nInsAfter too. [bug 658526] [r=nnethercote]
--HG--
extra : convert_revision : 070ac9dc74702ec0658384b0ec2c44cfe10d3fdd
2011-05-23 11:37:47 +01:00
Rick Reitmaier
778c1c64ce Bug 609393 - resourceConsistencyCheck x87 stack assert can fire (r+wmaddox)
--HG--
extra : convert_revision : 87a15611dc195b0f520299c6f5f317f779eb31ba
2011-05-20 16:01:11 -07:00
Luke Wagner
b1faffbccb Bug 655435 - Fix leak in Atomize (r=njn,cdleary) 2011-05-12 13:15:36 -07:00
Luke Wagner
4a10088b08 Bug 656171 - Use object principals finder in PrincipalsForCompiledCode, this time with hacks to fix xpcshell hacks (r=mrbkap) 2011-05-12 12:12:50 -07:00
Ed Morley
c9aaef67a9 Bug 652731 - Remove check for ZIP in js/src configure, since spidermonkey does not require it; r=jimb 2011-05-13 06:59:56 -07:00
Jason Orendorff
2f446f125e Add Debug.Object.prototype.callable. 2011-05-11 15:15:50 -05:00
Jason Orendorff
4fdb57d0d8 Passing test for null resumption. 2011-05-11 15:04:08 -05:00
Jason Orendorff
e325825249 Rename Debug.Object.prototype.prototype to .proto.
--HG--
rename : js/src/jit-test/tests/debug/Object-prototype.js => js/src/jit-test/tests/debug/Object-proto.js
2011-05-11 14:03:43 -05:00
Jason Orendorff
f47d525963 Change methods Debug.Object.prototype.getClass and getPrototype to accessor properties .class and .prototype.
--HG--
rename : js/src/jit-test/tests/debug/Object-getClass.js => js/src/jit-test/tests/debug/Object-class.js
rename : js/src/jit-test/tests/debug/Object-getPrototype.js => js/src/jit-test/tests/debug/Object-prototype.js
2011-05-10 17:36:49 -05:00
Jason Orendorff
e16cbdd998 Add Debug.Frame.prototype.eval. 2011-05-06 17:47:47 -05:00
Jason Orendorff
db6426a44e Add Debug.Object.prototype.getPrototype. 2011-05-06 12:40:56 -05:00