Closed Bug 1635432 Opened 5 years ago Closed 5 years ago

Create FunctionBox without a FunctionCreationData

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla78
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.

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.

Attachment #9145832 - Attachment description: Bug 1635432 - Create FunctionBox without a FunctionCreationData → Bug 1635432 - Create FunctionBox without a FunctionCreationData. r?mgaudet
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c31cfefcd2d Create FunctionBox without a FunctionCreationData. r=mgaudet
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: