Closed
Bug 1618637
Opened 4 years ago
Closed 4 years ago
Initialize JSFunction::nargs when allocating function in function
Categories
(Core :: JavaScript Engine, task, P2)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla78
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: mgaudet, Assigned: tcampbell)
References
Details
Attachments
(1 file)
FunctionBox::synchronizeArgCount
is a workaround which can be removed once we're done JSFunction deferral / stencil
Updated•4 years ago
|
Priority: -- → P3
Assignee | ||
Comment 1•4 years ago
|
||
I leave FunctionBox::synchronizeArgCount
around for BinAST, but remove it from the normal frontend case.
Assignee | ||
Comment 2•4 years ago
|
||
With JSFunction allocations deferred until after at least parsing, we have
the correct nargs on the FunctionBox by the time we allocate that function.
This lets use remove a number of synchronizeArgCount
calls.
Standalone functions still need to be updated after parsing completes because
the function is an input.
BinAST allocations aren't deferred yet, so leave those calls alone.
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b165ac2f1059 Construct JSFunctions directly with correct nargs in frontend. r=mgaudet
Comment 4•4 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox78:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in
before you can comment on or make changes to this bug.
Description
•