Decouple Stencil instantiation from FunctionBox/SharedContext
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox80 | --- | fixed |
People
(Reporter: tcampbell, Assigned: arai)
References
Details
Attachments
(17 external files, 3 obsolete files)
While the Parser/BCE generate ScriptStencils for the majority of their result data, we still use the FunctionBox/SharedContext while doing the instantiation of VM scripts. This bug is about tracking the missing info in the ScriptStencil so that it can outlive the frontend LifoAlloc.
At least the following need to be fixed:
- SourceExtent
- FunctionFlags
- FunctionName
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Depends on D81147
| Assignee | ||
Comment 3•6 years ago
|
||
Depends on D81148
| Assignee | ||
Comment 4•6 years ago
|
||
Depends on D81149
| Assignee | ||
Comment 5•6 years ago
|
||
Depends on D81150
| Assignee | ||
Comment 6•6 years ago
|
||
Also moved FunctionBox::createFunction to CreateFunction in order to
separate the logic from FunctionBox later.
Depends on D81151
| Assignee | ||
Comment 7•6 years ago
|
||
Depends on D81152
| Assignee | ||
Comment 8•6 years ago
|
||
Depends on D81153
| Assignee | ||
Comment 9•6 years ago
|
||
Depends on D81154
| Assignee | ||
Comment 10•6 years ago
|
||
Later patch will replace remaining FunctionBox reference in stencil
instantiation.
Depends on D81155
| Assignee | ||
Comment 11•6 years ago
|
||
Depends on D81157
| Assignee | ||
Comment 12•6 years ago
|
||
Depends on D81158
| Assignee | ||
Comment 13•6 years ago
|
||
Depends on D81159
| Assignee | ||
Comment 14•6 years ago
|
||
Depends on D81157
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 15•6 years ago
|
||
To check if certain stencil is function or not, without relying on
ScriptStencil.functionIndex, ScriptStencil.immutableFlags should be modified
eagarly, instead of at the end of parsing/compilation.
Depends on D81160
| Assignee | ||
Comment 16•6 years ago
|
||
Depends on D81393
| Assignee | ||
Comment 17•6 years ago
|
||
there is remaining part in ScopeCreationData, that needs to be replaced by FunctionIndex and individual field data
https://searchfox.org/mozilla-central/rev/5a4aaccb28665807a6fd49cf48367d47fbb5a19a/js/src/frontend/Stencil.h#217
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 18•6 years ago
|
||
Depends on D81394
| Assignee | ||
Comment 19•6 years ago
|
||
Depends on D82533
| Assignee | ||
Comment 20•6 years ago
|
||
Depends on D82534
| Assignee | ||
Comment 21•6 years ago
|
||
Depends on D82535
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
| bugherder | ||
Comment 24•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Comment 25•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d0e0b6bea64b
https://hg.mozilla.org/mozilla-central/rev/5b59137f3bf2
https://hg.mozilla.org/mozilla-central/rev/d486d03edf00
https://hg.mozilla.org/mozilla-central/rev/89afdcc3e7e5
https://hg.mozilla.org/mozilla-central/rev/db845919143a
https://hg.mozilla.org/mozilla-central/rev/388fd0366c21
https://hg.mozilla.org/mozilla-central/rev/afd5c026cc19
https://hg.mozilla.org/mozilla-central/rev/70e75d937da5
https://hg.mozilla.org/mozilla-central/rev/fae2a26e920a
https://hg.mozilla.org/mozilla-central/rev/08f7ecebf503
https://hg.mozilla.org/mozilla-central/rev/5e939bbeea80
https://hg.mozilla.org/mozilla-central/rev/f7f6f94b7377
Description
•