[jsdbg2] Debugger should use NativeObject subclasses for all Debugger.Foo API objects
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
People
(Reporter: jimb, Assigned: jimb)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-mvp])
Attachments
(4 files)
The Debugger
implementation does not define C++ classes derived from NativeObject
for all its Debugger.Foo
types—for example, there is no DebuggerScript
class—so that many of C++'s basic structuring tools like member functions, member types, and static data members are not available. Basic SpiderMonkey tools like the is<>
and as<>
methods on JSObject
don't work. Definitions are simply given DebuggerScript_
prefixes. This code should be modernized.
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D37509
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Clean try push for Debugger.Source patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0c3287ea6ea174e96a45f1bb185cf5fe778b7898
Comment 6•5 years ago
|
||
bugherder |
Assignee | ||
Comment 7•5 years ago
|
||
As suggested in patch review, some of the mozilla::Variant matcher classes in
Script.cpp could be written more clearly using lambda-based matching. This patch
applies that technique in the implementations of DebuggerScript's create,
getStartLine, and getFormat methods.
Comment 9•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Backed out for build bustages.
Push with failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&revision=7541e22758ebfdbbb2514184e1bb822bff53ecee&selectedJob=265292628
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=265292628&repo=autoland&lineNumber=7223
Backout: https://hg.mozilla.org/integration/autoland/rev/221a89193a200500d80441f7f32f38912c639f60
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Description
•