a4374705dd79c6ff959a3d4141a6fe313babde1c: Merge from tracemonkey to jsdbg2.
Jason Orendorff <jorendorff@mozilla.com> - Fri, 01 Jul 2011 19:02:40 -0500 - rev 74876
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Merge from tracemonkey to jsdbg2.
8fb3609398571bce63e8186109360e24c860859c: Two changes: Try to make tests/debug/gc-06.js more reliable with conservative GC. And remove the new compartment assertions from jsdbgapi.h, to avoid disturbing jsdbgapi.h-using code other than JSD (such as the shell's trap() function).
Jason Orendorff <jorendorff@mozilla.com> - Fri, 01 Jul 2011 10:30:16 -0500 - rev 74875
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Two changes: Try to make tests/debug/gc-06.js more reliable with conservative GC. And remove the new compartment assertions from jsdbgapi.h, to avoid disturbing jsdbgapi.h-using code other than JSD (such as the shell's trap() function).
ba9d8b33753c45c21443be2d78ef2348ffe58395: Adjust compartment assertions in the new implementations of jsdbgapi.h Trap entry points. Some are tightened up, but JS_ClearScriptTraps no longer asserts, as that caused a test to fail in debug builds.
Jason Orendorff <jorendorff@mozilla.com> - Wed, 29 Jun 2011 10:16:55 -0500 - rev 74874
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Adjust compartment assertions in the new implementations of jsdbgapi.h Trap entry points. Some are tightened up, but JS_ClearScriptTraps no longer asserts, as that caused a test to fail in debug builds.
63ee1fe5025c99e88e20847e1e533d2af9117cb8: Fix test jit-test/tests/debug/Debug-ctor-03.js: only expect new Debug(parent) to fail if parent really cannot be put into debug mode.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 28 Jun 2011 18:08:49 -0500 - rev 74873
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Fix test jit-test/tests/debug/Debug-ctor-03.js: only expect new Debug(parent) to fail if parent really cannot be put into debug mode.
45f1cf2c59d200bc5e5db35001eed68d9a466a13: Add breakpoints.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 28 Jun 2011 16:06:34 -0500 - rev 74872
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Add breakpoints. This adds a new per-compartment implementation of breakpoints and reimplements the jsdbgapi.h "trap" entry points on top of it. Most jsdbgapi.h-using code will still work, but there is no longer a single runtime-wide trapList protected by a lock. Embeddings must follow the compartment rules for thread safety. JS_ClearAllTraps was removed, replaced by the per-compartment API JS_ClearAllTrapsForCompartment. The new implementation asserts that the PC passed to JS_SetTrap is actually an offset of an instruction, not just a random number. This caused quite a few tests to fail; fixes are included. Added Debug.Script.prototype.setBreakpoint, getBreakpoints, clearBreakpoint, and clearAllBreakpoints; and Debug.prototype.clearAllBreakpoints. In addition to tests targeting the new functionality, this changeset includes some tests for Debug.Script.prototype.getLineOffsets, which is hard to test without breakpoints.
2cc9d8a133bc33a0202ec8dcdcd1b85b3df5eb9d: Revise comments on js::Debug::mark. Also inline Debug::sweepCompartment into Debug::sweepAll.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 28 Jun 2011 14:48:22 -0500 - rev 74871
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Revise comments on js::Debug::mark. Also inline Debug::sweepCompartment into Debug::sweepAll.
9ed67a5d4e917fab856aabd656129bed4ab81dbb: Add Script.prototype.getAllOffsets and getLineOffsets.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 28 Jun 2011 14:46:00 -0500 - rev 74870
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Add Script.prototype.getAllOffsets and getLineOffsets.
9545334d35a31dff3abd1f8ec6c624daa18067fe: Quick follow-up for thinko in bug 667925: lists can be empty. r=orange.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 28 Jun 2011 12:28:02 -0500 - rev 74869
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Quick follow-up for thinko in bug 667925: lists can be empty. r=orange.
13c14153bd63ae9421ebaeb8ca4c62cfc148acb6: Bug 667925 - Line number is bogus on JSOP_TRACE opcodes. r=brendan.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 28 Jun 2011 12:15:32 -0500 - rev 74868
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Bug 667925 - Line number is bogus on JSOP_TRACE opcodes. r=brendan.
d165c2385ee06a63b34ac4a5507a98ea0e9ba645: Add Script.prototype.getOffsetLine.
Jason Orendorff <jorendorff@mozilla.com> - Sat, 25 Jun 2011 20:58:17 -0500 - rev 74867
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Add Script.prototype.getOffsetLine.
026c7bc10466e0407b0cb65d11db1ccbe4e0eb91: Add Frame.prototype.offset.
Jason Orendorff <jorendorff@mozilla.com> - Sat, 25 Jun 2011 19:13:19 -0500 - rev 74866
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Add Frame.prototype.offset.
0a728f8555057f892902873ee4be96abbcc58023: Test that we get the same Debug.Script instance for different closures made from the same 'function' expression/declaration/statement.
Jim Blandy <jimb@mozilla.com> - Fri, 24 Jun 2011 14:10:26 -0700 - rev 74865
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Test that we get the same Debug.Script instance for different closures made from the same 'function' expression/declaration/statement.
7a78b176e018fee1a5899a5902b2c266925dd488: Fix 'if' in DebugObject_trace: the scope of a declaration includes its initializer.
Jim Blandy <jimb@mozilla.com> - Fri, 24 Jun 2011 14:02:23 -0700 - rev 74864
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Fix 'if' in DebugObject_trace: the scope of a declaration includes its initializer.
2d2654fc31b2eff7e5ac6ac2573969567c6c6c40: Support disabling debug mode in a compartment with scripts on the stack. Dump the debug-mode JIT code during a later GC.
Jason Orendorff <jorendorff@mozilla.com> - Thu, 23 Jun 2011 12:25:48 -0500 - rev 74863
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Support disabling debug mode in a compartment with scripts on the stack. Dump the debug-mode JIT code during a later GC.
2560cd08c8281ce1cec2fb37f7e9b7a60c8cc906: Change js::Debug::heldScripts to have pointers to debuggee-compartment objects as keys, rather than wrappers.
Jason Orendorff <jorendorff@mozilla.com> - Mon, 20 Jun 2011 18:30:36 -0500 - rev 74862
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Change js::Debug::heldScripts to have pointers to debuggee-compartment objects as keys, rather than wrappers.
6fef8a7982caad773a5ae9b499d4374b26d55ef6: Change js::Debug::objects to have referents as keys, rather than cross-compartment wrappers of referents.
Jason Orendorff <jorendorff@mozilla.com> - Mon, 20 Jun 2011 18:26:05 -0500 - rev 74861
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Change js::Debug::objects to have referents as keys, rather than cross-compartment wrappers of referents. This adds support for cross-compartment WeakMaps and changes js::Debug::objects to be one. It eliminates the vexing JSMSG_DEBUG_STREAMS_CROSSED error messsage. The GC interaction between jsgc and jsdbg is a little more complex now; like the cross-compartment wrapper maps, Debug::objects must be marked (just once) during per-compartment GC. In other ways this is a simplification.
3a7a75064ce6b91d69ab70486a5df0cfd112eea3: Fix Debug-ctor-03.js (regression: the exception is being thrown in the wrong compartment since rev e05d3da5866a) and make removeDebuggee throw if it would disable debug mode in a compartment with scripts on the stack.
Jason Orendorff <jorendorff@mozilla.com> - Mon, 20 Jun 2011 15:33:53 -0500 - rev 74860
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Fix Debug-ctor-03.js (regression: the exception is being thrown in the wrong compartment since rev e05d3da5866a) and make removeDebuggee throw if it would disable debug mode in a compartment with scripts on the stack.
e05d3da5866a594138b9678d12bc122a81551946: GlobalObject::getOrCreateDebuggers must be called in the global object's compartment, since it may create an object.
Jason Orendorff <jorendorff@mozilla.com> - Mon, 20 Jun 2011 14:06:42 -0500 - rev 74859
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
GlobalObject::getOrCreateDebuggers must be called in the global object's compartment, since it may create an object.
ac45a3dbfe3304dca3b9c9b0de4464f1e102a0b3: Initial support for Debug.Script instances. r=jorendorff, push=jorendorff.
Jason Orendorff <jorendorff@mozilla.com> - Fri, 17 Jun 2011 16:28:32 -0500 - rev 74858
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Initial support for Debug.Script instances. r=jorendorff, push=jorendorff.
6885f4c66607709010eae5d47f39b6b22ee3f707: Merge.
Jason Orendorff <jorendorff@mozilla.com> - Fri, 17 Jun 2011 11:12:33 -0500 - rev 74857
Push 313 by eakhgari@mozilla.com at Tue, 16 Aug 2011 19:58:41 +0000
Merge.
(0) -30000 -10000 -3000 -1000 -300 -100 -50 -20 +20 +50 +100 +300 +1000 +3000 +10000 +30000 +100000 +300000 tip