Closed Bug 1619345 Opened 4 years ago Closed 4 years ago

Disconnect ScriptStencil from js::FunctionBox

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: mgaudet, Assigned: mgaudet)

References

Details

Attachments

(4 files, 1 obsolete file)

Currently ScriptStencil stores the associated FunctionBox in order to call JSScript::initFromFunctionBox.

When we move stencils across threads, FunctionBox pointers will no longer be valid as they are LifoAlloc scoped and will die when the parser dies; so we'll need to disconnect ScriptStencil from directly refering to it.

At allocation time, we should be able to extract the relevant information from the functionbox.

Priority: -- → P3
Depends on: 1621449
Assignee: nobody → mgaudet
Status: NEW → ASSIGNED

Replace with a FunctionIndex

Depends on D67571

Attachment #9134551 - Attachment is obsolete: true
Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d0bd6caf8d48
Create ImmutableScriptData before ScriptStencil, and transfer ownership to stencil r=tcampbell
https://hg.mozilla.org/integration/autoland/rev/392aa4cee226
Rename BaseScript::immutableScriptFlags_ to immutableFlags_ to match mutableFlags_ r=tcampbell
https://hg.mozilla.org/integration/autoland/rev/52a7e7b5c595
Don't use ScriptStencil::functionBox for propagating flags r=tcampbell
https://hg.mozilla.org/integration/autoland/rev/187d340adf5e
Remove FunctionBox reference in ScriptStencil r=tcampbell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: