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)

enhancement

Tracking

()

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
Severity: normal → S3

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?

Flags: needinfo?(nicolas.b.pierron)
Status: ASSIGNED → NEW
Flags: needinfo?(nicolas.b.pierron)
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.