Debugger::createSource() doesn't know correct asm.js option when compiling
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
People
(Reporter: bthrall, Unassigned)
References
(Blocks 1 open bug)
Details
When createSource()
is used to recreate a JSScript for asm.js code, it doesn't know the exact conditions that were used to compile the original JSScript. In particular, it doesn't know whether or not it was compiled with the AsmJSOption enabled or not.
The Debugger uses the script returned by createSource()
to determine what breakpoints to show in the asm.js code, so compiling the script the wrong way will disable breakpoints when they should be enabled, or vice versa.
We need a way for the Debugger to either get the original script, or to know how the original script was compiled so it can correctly recreate the JSScript.
Comment 1•3 months ago
|
||
As mentioned in https://phabricator.services.mozilla.com/D204427#7920234 , DevTools actually partially knows the correct AsmJS option, and that sufficiently cover the situation where the inconsistency causes problems
Updated•3 months ago
|
Description
•