d02083014f57890a0e9977094ff51625e9ead9a6: Automatically turn debug mode on/off when adding/removing debuggees.
Jason Orendorff <jorendorff@mozilla.com> - Thu, 02 Jun 2011 21:58:46 -0500 - rev 74460
Automatically turn debug mode on/off when adding/removing debuggees. This allows most of the tests to run without the -d command-line flag. Now a compartment is in debug mode if * JSD1 wants debug mode on, thanks to a JS_SetDebugMode* call; OR * JSD2 wants debug mode on, because a live Debug object has a debuggee global in that compartment. Since this patch only adds the second half of the rule, JSD1 should be unaffected. The new rule has three issues: 1. When removeDebuggee is called, it can cause debug mode to be turned off for a compartment. If any scripts from that compartment are on the stack, and the methodjit is enabled, returning to those stack frames will crash. 2. When a Debug object is GC'd, it can cause debug mode to be turned off for one or more compartments. This causes the same problem with returning to deleted methodjit code, but the fix is different: such Debug objects simply should not be GC'd. 3. Setting .enabled to false still does not turn off debug mode anywhere, so it does not reduce overhead as much as it should. A possible fix for issue #1 would be to make such removeDebuggee calls throw. The fix to issues #2 and #3 is to tweak the rule--and to tweak the rule for Debug object GC-reachability.
9ac0d2ba9ac020baddf21845a5af6cc7d7c802cc: Fix bug in Debug::hasAnyLiveHooks.
Jason Orendorff <jorendorff@mozilla.com> - Thu, 02 Jun 2011 21:32:22 -0500 - rev 74459
Fix bug in Debug::hasAnyLiveHooks.
e05e71b1bda14bda7ba0cc026fe811cac595dd42: Add jit-test tag to the new test in the previous check-in.
Jason Orendorff <jorendorff@mozilla.com> - Thu, 02 Jun 2011 20:44:03 -0500 - rev 74458
Add jit-test tag to the new test in the previous check-in.
f5018c7fabf7114839195041a12dff380651b1e7: Add passing test.
Jason Orendorff <jorendorff@mozilla.com> - Thu, 02 Jun 2011 20:41:16 -0500 - rev 74457
Add passing test.
f95a35c5010cb770791369c2a61714441f66e72a: 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.
Jason Orendorff <jorendorff@mozilla.com> - Thu, 26 May 2011 14:54:47 -0500 - rev 74456
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.
614e714d02981477663bdfd58f30bf5aa34a936b: Add a few bits to frame.arguments tests.
Jason Orendorff <jorendorff@mozilla.com> - Thu, 26 May 2011 12:13:45 -0500 - rev 74455
Add a few bits to frame.arguments tests.
d249478fbbe1828131c1d7388dfb361378e501fe: Add Debug.Frame.prototype.evalWithBindings.
Jason Orendorff <jorendorff@mozilla.com> - Wed, 25 May 2011 15:21:53 -0500 - rev 74454
Add Debug.Frame.prototype.evalWithBindings.
a34a276b47c5c0bd6ecb1391c6500b201bc9134d: Merge from tracemonkey to jsdbg2.
Jason Orendorff <jorendorff@mozilla.com> - Wed, 25 May 2011 17:52:35 -0500 - rev 74453
Merge from tracemonkey to jsdbg2.
a52fba05829489dcc15e77e1a7111639843d672f: There's no point in cleaning up a Debug::objects table that belongs to a dead Debug object.
Jim Blandy <jimb@mozilla.com> - Wed, 25 May 2011 10:51:39 -0700 - rev 74452
There's no point in cleaning up a Debug::objects table that belongs to a dead Debug object.
2cd6aa0531124ee54cc4b1ac03a75338ebcdbf51: 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.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 24 May 2011 22:56:09 -0500 - rev 74451
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.
9a616d98ca8b5f94552f15a18ca95d58abe94f27: Tabs to spaces in a few tests.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 24 May 2011 17:21:27 -0500 - rev 74450
Tabs to spaces in a few tests.
fd5ca689f2d6c2d4fd0f56b4aa105a1e0349e7b8: Add Debug.Object.prototype.call.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 24 May 2011 17:12:43 -0500 - rev 74449
Add Debug.Object.prototype.call.
a3369f2c2600822d9325bb767aa804eec7f1985a: Use form feeds above major section header comments, for easier navigation with Emacs.
Jim Blandy <jimb@mozilla.com> - Tue, 24 May 2011 14:12:19 -0700 - rev 74448
Use form feeds above major section header comments, for easier navigation with Emacs.
2c50ea28d5b625728dd763e587d4a4fc57538fc9: Don't mark objects from a Debug's ephemeral tables unless the Debug itself has been marked.
Jim Blandy <jimb@mozilla.com> - Tue, 24 May 2011 13:52:05 -0700 - rev 74447
Don't mark objects from a Debug's ephemeral tables unless the Debug itself has been marked.
1d0b71fb4f677a64fb69fc365fd2598feee37a61: Make frame.arguments live.
Jason Orendorff <jorendorff@mozilla.com> - Tue, 24 May 2011 14:31:39 -0500 - rev 74446
Make frame.arguments live.
26d722c9da86ceabb048c8b23bca9a8d5470d26a: Fix Debug.Object.prototype.name to return undefined if the object is not a function or is a nameless function.
Jason Orendorff <jorendorff@mozilla.com> - Mon, 23 May 2011 17:07:26 -0500 - rev 74445
Fix Debug.Object.prototype.name to return undefined if the object is not a function or is a nameless function.
6a006a09da0ce0adceb1c7e62d733949d90de52f: Clarify comments on 'this' checks that forbid the each class's prototype object.
Jim Blandy <jimb@mozilla.com> - Mon, 23 May 2011 15:26:27 -0700 - rev 74444
Clarify comments on 'this' checks that forbid the each class's prototype object.
1fb7cb53a55514180b0b83e003cc611fd86b4d20: Make check for valid resumption value a bit more legible.
Jim Blandy <jimb@mozilla.com> - Mon, 23 May 2011 15:01:24 -0700 - rev 74443
Make check for valid resumption value a bit more legible.
2a6c013ce9e7573be3d8cbfc5991544a0bd97050: jsdbg.cpp: Implement Debug.Object.prototype.parameterNames. Add tests. Also, change DebugObject_getName to follow return-on-error conventions.
Jim Blandy <jimb@mozilla.com> - Mon, 23 May 2011 14:53:04 -0700 - rev 74442
jsdbg.cpp: Implement Debug.Object.prototype.parameterNames. Add tests. Also, change DebugObject_getName to follow return-on-error conventions.
6d94e6ad3858ed12244de433385faa4d593017d4: jsdbg.cpp (Debug::getScriptFrame): check for null return from NewDenseAllocatedArray at the right time.
Jim Blandy <jimb@mozilla.com> - Mon, 23 May 2011 14:53:02 -0700 - rev 74441
jsdbg.cpp (Debug::getScriptFrame): check for null return from NewDenseAllocatedArray at the right time.
(0) -30000 -10000 -3000 -1000 -300 -100 -50 -20 +20 +50 +100 +300 +1000 +3000 +10000 +30000 +100000 tip