Jason Orendorff
b01a686753
Address review comments from Waldo (bug 672829 comment 26).
2011-07-21 17:38:05 -05:00
Jason Orendorff
a03f15a1eb
Address review comments from Waldo (bug 672829 comment 24).
2011-07-21 17:36:09 -05:00
Jason Orendorff
30ecf8305b
Address review comments from Waldo (bug 672829 comment 23).
2011-07-21 16:23:21 -05:00
Jason Orendorff
254ba76233
Address review comments from dvander (bug 672829 comment 17).
2011-07-21 15:46:04 -05:00
Jason Orendorff
3601afef8b
Revert some unnecessary and incompatible changes I made to JS_DumpHeap in rev 2560cd08c828.
2011-07-20 12:01:02 -05:00
Jason Orendorff
6622960d6e
Change comments in jsdbg.cpp to conventional style.
2011-07-20 11:05:36 -05:00
Jason Orendorff
4b246b5b3e
Cleanup for review. This undoes some changes made earlier to tests, fixes some formatting errors, deletes some dead code, and fixes a bug in JSPROP_NATIVE_ACCESSORS support.
2011-07-20 10:39:01 -05:00
Jason Orendorff
684476de93
Use reserved slots rather than Debugger fields for hooks.
2011-07-19 08:27:03 -05:00
Jason Orendorff
052fe6b23a
In JSCompartment::sweepBreakpoints, enumerate the breakpoints safely instead of reading freed memory.
2011-07-18 16:57:39 -05:00
Jason Orendorff
671bbf0bb1
Merge mozilla-central to jsdbg2.
2011-07-18 10:58:56 -05:00
Ben Turner
3b5744241b
Bug 649537 - 'Workers: Make one OS thread and JS runtime per worker, and lose XPConnect'. r=sicking+mrbkap.
...
--HG--
rename : dom/src/threads/Makefile.in => dom/workers/Makefile.in
rename : dom/src/threads/test/Makefile.in => dom/workers/test/Makefile.in
rename : dom/src/threads/test/WorkerTest.jsm => dom/workers/test/WorkerTest.jsm
rename : dom/src/threads/test/WorkerTest_badworker.js => dom/workers/test/WorkerTest_badworker.js
rename : dom/src/threads/test/WorkerTest_subworker.js => dom/workers/test/WorkerTest_subworker.js
rename : dom/src/threads/test/WorkerTest_worker.js => dom/workers/test/WorkerTest_worker.js
rename : dom/src/threads/test/atob_worker.js => dom/workers/test/atob_worker.js
rename : dom/src/threads/test/chromeWorker_subworker.js => dom/workers/test/chromeWorker_subworker.js
rename : dom/src/threads/test/chromeWorker_worker.js => dom/workers/test/chromeWorker_worker.js
rename : dom/src/threads/test/closeOnGC_server.sjs => dom/workers/test/closeOnGC_server.sjs
rename : dom/src/threads/test/closeOnGC_worker.js => dom/workers/test/closeOnGC_worker.js
rename : dom/src/threads/test/close_worker.js => dom/workers/test/close_worker.js
rename : dom/src/threads/test/fibonacci_worker.js => dom/workers/test/fibonacci_worker.js
rename : dom/src/threads/test/importScripts_worker.js => dom/workers/test/importScripts_worker.js
rename : dom/src/threads/test/importScripts_worker_imported1.js => dom/workers/test/importScripts_worker_imported1.js
rename : dom/src/threads/test/importScripts_worker_imported2.js => dom/workers/test/importScripts_worker_imported2.js
rename : dom/src/threads/test/importScripts_worker_imported3.js => dom/workers/test/importScripts_worker_imported3.js
rename : dom/src/threads/test/importScripts_worker_imported4.js => dom/workers/test/importScripts_worker_imported4.js
rename : dom/src/threads/test/json_worker.js => dom/workers/test/json_worker.js
rename : dom/src/threads/test/location_worker.js => dom/workers/test/location_worker.js
rename : dom/src/threads/test/longThread_worker.js => dom/workers/test/longThread_worker.js
rename : dom/src/threads/test/navigator_worker.js => dom/workers/test/navigator_worker.js
rename : dom/src/threads/test/newError_worker.js => dom/workers/test/newError_worker.js
rename : dom/src/threads/test/recursion_worker.js => dom/workers/test/recursion_worker.js
rename : dom/src/threads/test/relativeLoad_import.js => dom/workers/test/relativeLoad_import.js
rename : dom/src/threads/test/relativeLoad_sub_import.js => dom/workers/test/relativeLoad_sub_import.js
rename : dom/src/threads/test/relativeLoad_sub_worker.js => dom/workers/test/relativeLoad_sub_worker.js
rename : dom/src/threads/test/relativeLoad_sub_worker2.js => dom/workers/test/relativeLoad_sub_worker2.js
rename : dom/src/threads/test/relativeLoad_worker.js => dom/workers/test/relativeLoad_worker.js
rename : dom/src/threads/test/relativeLoad_worker2.js => dom/workers/test/relativeLoad_worker2.js
rename : dom/src/threads/test/simpleThread_worker.js => dom/workers/test/simpleThread_worker.js
rename : dom/src/threads/test/suspend_iframe.html => dom/workers/test/suspend_iframe.html
rename : dom/src/threads/test/suspend_worker.js => dom/workers/test/suspend_worker.js
rename : dom/src/threads/test/terminate_worker.js => dom/workers/test/terminate_worker.js
rename : dom/src/threads/test/testXHR.txt => dom/workers/test/testXHR.txt
rename : dom/src/threads/test/test_404.html => dom/workers/test/test_404.html
rename : dom/src/threads/test/test_atob.html => dom/workers/test/test_atob.html
rename : dom/src/threads/test/test_chromeWorker.html => dom/workers/test/test_chromeWorker.html
rename : dom/src/threads/test/test_chromeWorker.xul => dom/workers/test/test_chromeWorker.xul
rename : dom/src/threads/test/test_chromeWorkerJSM.xul => dom/workers/test/test_chromeWorkerJSM.xul
rename : dom/src/threads/test/test_close.html => dom/workers/test/test_close.html
rename : dom/src/threads/test/test_closeOnGC.html => dom/workers/test/test_closeOnGC.html
rename : dom/src/threads/test/test_errorPropagation.html => dom/workers/test/test_errorPropagation.html
rename : dom/src/threads/test/test_fibonacci.html => dom/workers/test/test_fibonacci.html
rename : dom/src/threads/test/test_importScripts.html => dom/workers/test/test_importScripts.html
rename : dom/src/threads/test/test_json.html => dom/workers/test/test_json.html
rename : dom/src/threads/test/test_location.html => dom/workers/test/test_location.html
rename : dom/src/threads/test/test_longThread.html => dom/workers/test/test_longThread.html
rename : dom/src/threads/test/test_navigator.html => dom/workers/test/test_navigator.html
rename : dom/src/threads/test/test_newError.html => dom/workers/test/test_newError.html
rename : dom/src/threads/test/test_recursion.html => dom/workers/test/test_recursion.html
rename : dom/src/threads/test/test_relativeLoad.html => dom/workers/test/test_relativeLoad.html
rename : dom/src/threads/test/test_simpleThread.html => dom/workers/test/test_simpleThread.html
rename : dom/src/threads/test/test_suspend.html => dom/workers/test/test_suspend.html
rename : dom/src/threads/test/test_terminate.html => dom/workers/test/test_terminate.html
rename : dom/src/threads/test/test_threadErrors.html => dom/workers/test/test_threadErrors.html
rename : dom/src/threads/test/test_threadTimeouts.html => dom/workers/test/test_threadTimeouts.html
rename : dom/src/threads/test/test_throwingOnerror.html => dom/workers/test/test_throwingOnerror.html
rename : dom/src/threads/test/test_xhr.html => dom/workers/test/test_xhr.html
rename : dom/src/threads/test/test_xhrAbort.html => dom/workers/test/test_xhrAbort.html
rename : dom/src/threads/test/threadErrors_worker1.js => dom/workers/test/threadErrors_worker1.js
rename : dom/src/threads/test/threadErrors_worker2.js => dom/workers/test/threadErrors_worker2.js
rename : dom/src/threads/test/threadErrors_worker3.js => dom/workers/test/threadErrors_worker3.js
rename : dom/src/threads/test/threadErrors_worker4.js => dom/workers/test/threadErrors_worker4.js
rename : dom/src/threads/test/threadTimeouts_worker.js => dom/workers/test/threadTimeouts_worker.js
rename : dom/src/threads/test/throwingOnerror_worker.js => dom/workers/test/throwingOnerror_worker.js
rename : dom/src/threads/test/xhrAbort_worker.js => dom/workers/test/xhrAbort_worker.js
rename : dom/src/threads/test/xhr_worker.js => dom/workers/test/xhr_worker.js
2011-07-17 15:09:13 -04:00
Matheus Kerschbaum
55aebc79d4
Bug 579571 - Remove --enable-timeline support. r=tglek
2011-07-17 12:07:42 +02:00
Jason Orendorff
336c92f85f
Follow-up to previous changeset, just move a few things around.
2011-07-14 16:51:15 -05:00
Jason Orendorff
37c358c7bf
True story: GCC likes function templates in debug builds, but not in release builds. Fix by ripping out the templates.
2011-07-14 16:42:23 -05:00
Jason Orendorff
c99f653075
Make more functions static.
2011-07-14 14:11:49 -05:00
Jason Orendorff
a16e1dd709
Add Debugger.Object.prototype.{seal,freeze,preventExtensions,isSealed,isFrozen,isExtensible}.
2011-07-14 11:05:52 -05:00
Jason Orendorff
182e234314
Remove unneeded Vector::find methods now that there is a js::Find in jstl.h.
2011-07-13 19:15:38 -05:00
Jason Orendorff
79a19dcd35
Get rid of Debugger.prototype.hooks, a major API change.
...
This renames the hooks as follows:
dbg.hooks.debuggerHandler -> dbg.onDebuggerStatement
dbg.hooks.throw -> dbg.onExceptionUnwind
dbg.hooks.newScript -> dbg.onNewScript
dbg.hooks.enterFrame -> dbg.onEnterFrame
This touches just about every test.
--HG--
rename : js/src/jit-test/tests/debug/hooks-debuggerHandler-01.js => js/src/jit-test/tests/debug/onDebuggerStatement-01.js
rename : js/src/jit-test/tests/debug/hooks-debuggerHandler-02.js => js/src/jit-test/tests/debug/onDebuggerStatement-02.js
rename : js/src/jit-test/tests/debug/hooks-debuggerHandler-03.js => js/src/jit-test/tests/debug/onDebuggerStatement-03.js
rename : js/src/jit-test/tests/debug/hooks-enterFrame-01.js => js/src/jit-test/tests/debug/onEnterFrame-01.js
rename : js/src/jit-test/tests/debug/hooks-enterFrame-02.js => js/src/jit-test/tests/debug/onEnterFrame-02.js
rename : js/src/jit-test/tests/debug/hooks-enterFrame-03.js => js/src/jit-test/tests/debug/onEnterFrame-03.js
rename : js/src/jit-test/tests/debug/hooks-enterFrame-05.js => js/src/jit-test/tests/debug/onEnterFrame-05.js
rename : js/src/jit-test/tests/debug/hooks-throw-01.js => js/src/jit-test/tests/debug/onExceptionUnwind-01.js
rename : js/src/jit-test/tests/debug/hooks-throw-02.js => js/src/jit-test/tests/debug/onExceptionUnwind-02.js
rename : js/src/jit-test/tests/debug/hooks-throw-03.js => js/src/jit-test/tests/debug/onExceptionUnwind-03.js
rename : js/src/jit-test/tests/debug/hooks-throw-04.js => js/src/jit-test/tests/debug/onExceptionUnwind-04.js
rename : js/src/jit-test/tests/debug/hooks-throw-05.js => js/src/jit-test/tests/debug/onExceptionUnwind-05.js
rename : js/src/jit-test/tests/debug/hooks-throw-06.js => js/src/jit-test/tests/debug/onExceptionUnwind-06.js
rename : js/src/jit-test/tests/debug/hooks-newScript-01.js => js/src/jit-test/tests/debug/onNewScript-01.js
rename : js/src/jit-test/tests/debug/hooks-newScript-02.js => js/src/jit-test/tests/debug/onNewScript-02.js
2011-07-13 17:17:46 -05:00
Jason Orendorff
4329b9dad0
Add Debugger.Object.prototype.deleteProperty.
2011-07-13 07:34:21 -05:00
Jason Orendorff
7d92fa02e5
Add Debugger.Object.prototype.defineProperties and a few extra defineProperty tessts.
2011-07-13 06:46:23 -05:00
Jason Orendorff
168fd83e74
Add Debugger.Object.prototype.defineProperty.
2011-07-12 20:19:13 -05:00
Jason Orendorff
c5d451a17b
Fix the regressions introduced by rev af9974df716c (bug 665214).
...
1. Fix an embarrassing bug in NewPropertyDescriptorObject.
2. Fix a similar embarrassing bug in GetOwnPropertyDescriptor.
3. An existing jit-test required some seriously buggy Proxy behavior.
(It's a "don't crash" fuzztest.) Rev af9974df716c accidentally fixed
the buggy Proxy behavior, causing the test to fail. Keep the fix and
update the test.
2011-07-13 14:03:36 -05:00
Jason Orendorff
0e95d06901
Delete a test that hg backout failed to back out.
2011-07-13 10:46:38 -05:00
Jason Orendorff
4c4513de61
Backout 40e989742b4d due to failing jstests.
2011-07-13 10:43:00 -05:00
Jason Orendorff
12e082d98d
Backed out changeset 93533be00e3e due to failing jstests.
2011-07-13 10:41:09 -05:00
Jason Orendorff
ef3cb9f6dc
Add Debugger.Object.prototype.defineProperties and a few defineProperty tests.
2011-07-13 06:46:23 -05:00
Jason Orendorff
01f08a3395
Add Debugger.Object.prototype.defineProperty.
2011-07-12 20:19:13 -05:00
Jason Orendorff
f5ce61ea3c
Merge from mozilla-central to jsdbg2.
2011-07-12 10:47:31 -05:00
Mounir Lamouri
42f2b3d393
Merging mozilla-central and mozilla-inbound.
2011-07-12 10:53:40 +02:00
Daniel Holbert
cf4ffeb9a2
Bug 670794: Remove unused variable 'forInLet' from jsemit.cpp. r=waldo
2011-07-12 00:11:55 -07:00
Jason Orendorff
8ec65d33e5
Add Debugger.Object.prototype.getOwnPropertyNames.
2011-07-11 20:32:05 -05:00
Jason Orendorff
807084b05d
Add an initial cut at Debugger.Object.prototype.getOwnPropertyDescriptor. This implementation does not ensure that the debuggee does not run.
2011-07-11 20:22:50 -05:00
Jason Orendorff
e5eb2cf8d7
Bug 665214 - Provide a js::GetOwnPropertyDescriptor function that populates a PropertyDescriptor. r=Waldo.
2011-07-11 20:22:25 -05:00
Jim Blandy
a63b459a2d
Make Debugger::frame and Debugger::nonHeldScripts use RuntimeAllocPolicy, not SystemAllocPolicy.
...
I also changed the Debugger constructor to take an additional JSContext
argument, since that seemed a little more legible than getting the Runtime
out of |dbg|'s compartment all the time.
2011-07-11 15:59:41 -07:00
Jason Orendorff
b25a91e697
Merge from tracemonkey to jsdbg2.
2011-07-11 08:53:27 -05:00
Brian Hackett
4980469d03
Reland a37db4d95026
2011-07-08 18:35:07 -07:00
Brian Hackett
761ce3bec0
Reland 104b182daf70
2011-07-08 18:28:03 -07:00
Brian Hackett
0875c60102
Reland b5ebe47700ce
2011-07-08 18:20:04 -07:00
Brian Hackett
875fc32ac6
Reland rev 1013f4be025f
2011-07-08 18:17:39 -07:00
Brian Hackett
fd156b6340
Revert to 6840fbf4dcdd
2011-07-08 17:58:10 -07:00
Jason Orendorff
a89cc3e718
Add partial support hooks.enterFrame. Currently the return value is ignored.
2011-07-08 18:17:49 -05:00
Brian Hackett
00d04a894d
Restore per-compartment empty call shape, bug 670152. r=jorendorff
2011-07-08 11:16:25 -07:00
Jason Orendorff
38a438bc97
Add Debugger.Script.prototype.{url,startLine,lineCount}.
2011-07-08 12:41:12 -05:00
Brendan Eich
9daff163c1
Bug 621954 - common BindLocalVariable harder in jsparse.cpp (r=cdleary).
2011-07-07 23:09:38 -07:00
Brian Hackett
752b11eaa2
Measure type inference memory usage, bug 669958. r=njn
2011-07-07 20:04:47 -07:00
Jason Orendorff
d8af4ff3e4
Fix another bug with getChildScripts: the relevant bit on JSScript was being set after the newScript hook was called. Set it beforehand instead.
2011-07-07 19:07:09 -05:00
Jason Orendorff
5b32744353
Tighten an assertion in Debugger::onNewScript.
2011-07-07 17:54:44 -05:00
Jason Orendorff
cbb3d8cc24
Fix bug in Debugger.Script.prototype.getChildScripts. It didn't know about JSScript::savedCallerFun.
2011-07-07 17:52:39 -05:00
Makoto Kato
8853bbc4cc
backout bug 669564
2011-07-07 23:47:06 +09:00
Makoto Kato
4c0099ad70
Bug 669564 - XMM6 and XMM7 aren't scratch register on Win64 ABI. r=bhackett1024
2011-07-07 16:34:19 +09:00