Create FunctionBox without a FunctionCreationData
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
References
Details
Attachments
(1 file)
A FunctionBox
now tracks all the info it needs to allocate a JSFunction
without needing a FunctionCreationData
. This bug is about being able to create the FunctionBox
with only a default FunctionCreationData
and to allocate the deferred JSFunction
directly from FunctionBox
.
Future work will cleanup CompilationInfo::funcData
so that we can eliminate the FunctionCreationData
entirely and use ScriptStencil
instead.
Assignee | ||
Comment 1•5 years ago
|
||
Initialize the FunctionBox fields from parameters instead of a
FunctionCreationData instance, and allow creating the JSFunction directly
from the FunctionBox. This allows us to remove most fields from the
FunctionCreationData type.
Note that we still use a default instance of FunctionCreationData to
correctly fill in CompilationInfo::funcData list. Future work will address
that when we unify with ScriptStencil.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
bugherder |
Description
•