[jsdbg2] Split up Debugger.cpp
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
People
(Reporter: jimb, Assigned: jimb)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-mvp])
Attachments
(8 files, 2 obsolete files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
The Debugger
implementation is currently a single 428kiB, 13kloc file, js/src/vm/Debugger.cpp. Phabricator refuses to colorize the code for patch review due to its size. It's difficult to find the code one is looking for.
The implementation should be relocated to its own directory, js/src/dbg, and broken up into separate files. There would ideally be one file per Debugger
API object type (Debugger
, Debugger.Object
, Debugger.Script
, and so on). At first, Debugger.h
could remain a single file, but as separable pieces are identified, it could be broken up. Other files for shared functionality could be pulled out as needed.
A few other files in js/src/vm that probably also belong in js/src/dbg: DebuggerMemory.cpp, and perhaps the UbiNode... files.
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D37334
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D37335
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D37357
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D37508
Assignee | ||
Comment 9•5 years ago
|
||
Here's a version of D37334 rebased on top of the changes to js/src/vm/Debugger.cpp and Debugger.h in central.
Comment 10•5 years ago
|
||
Comment on attachment 9076984 [details]
Bug 1564164: Give Debugger.Script instances their own NativeObject subclass, DebuggerScript.
Revision D37509 was moved to bug 1564170. Setting attachment 9076984 [details] to obsolete.
Assignee | ||
Comment 11•5 years ago
|
||
Depends on D37528
Assignee | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/89e578d07137
https://hg.mozilla.org/mozilla-central/rev/6c763326b518
https://hg.mozilla.org/mozilla-central/rev/10ac90913cdf
https://hg.mozilla.org/mozilla-central/rev/530d71d677d5
https://hg.mozilla.org/mozilla-central/rev/5fe29dc3c21e
https://hg.mozilla.org/mozilla-central/rev/0f741c61e16b
Assignee | ||
Comment 15•5 years ago
|
||
This adds js/src/dbg/Source.{cpp,h}, and moves DebuggerSource's definition
there. No intended change in implementation or visible behavior.
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Description
•