Open
Bug 1457197
Opened 8 years ago
Updated 2 years ago
Lazy parsing is disabled when Code Coverage is enabled.
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox61 | --- | fix-optional |
People
(Reporter: nbp, Unassigned)
References
(Blocks 1 open bug)
Details
This bug causes false-negative coverage reports, by preventing the lazy-parser to be detected when the code coverage of JavaScript is enabled in the JavaScript engine.
The reason the lazy parsing is disabled [1] is to avoid getting multiple reports from a script which is being executed, relazified and re-executed.
We can solve this issue by removing the indexing based on the JSScript, held in the compartment, and moving towards an indexing based on the ScriptSource / ScriptSourceObject in addition to the sourceStart_ & sourceEnd_ instead of the JSScript.
[1] https://searchfox.org/mozilla-central/rev/78dbe34925f04975f16cb9a5d4938be714d41897/js/src/frontend/BytecodeCompiler.cpp#211
Updated•3 years ago
|
Severity: normal → S3
Comment 1•2 years ago
|
||
Seems like maybe this restriction no longer exists: https://searchfox.org/mozilla-central/source/js/src/frontend/BytecodeCompiler.h#283-286
Nicolas, am I correct here?
Blocks: js-code-coverage
Flags: needinfo?(nicolas.b.pierron)
| Reporter | ||
Comment 2•2 years ago
|
||
This is still the case as of today:
https://searchfox.org/mozilla-central/rev/0b1d02b2cb5736511139cf0e40b318273e825899/js/src/shell/js.cpp#12755-12758
Status: ASSIGNED → NEW
Flags: needinfo?(nicolas.b.pierron)
| Reporter | ||
Updated•2 years ago
|
Assignee: nicolas.b.pierron → nobody
Severity: S3 → N/A
You need to log in
before you can comment on or make changes to this bug.
Description
•