Cleanup uses of js::detail::CopyScript
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox76 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
References
Details
Attachments
(4 files)
Fix up some of the script cloning pathways to be a bit more uniform. The aim is to reduce the number of partial initialization states for scripts and to simplify onNewScript callbacks.
| Assignee | ||
Comment 1•6 years ago
|
||
Instead of using cloneSelfHostedFunctionScript and then partially undoing
the result, create the JSFunction and use CloneScriptIntoFunction directly.
This avoids initializing fields to wrong values and fixing later.
| Assignee | ||
Comment 2•6 years ago
|
||
Depends on D53873
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 5•6 years ago
|
||
Now that we directly construct the JSFunction of a default constructor, we
set the name and flags correctly. As a result the MakeDefaultConstructor
intrinsic doesn't do anything of consequence and we can remove it.
Depends on D53873
| Assignee | ||
Comment 6•6 years ago
|
||
If we add JSScript::initSharedData(), we no longer need to mark CopyScript as
a friend of JSScript and can simplify some things.
Comment 8•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
| bugherder | ||
Description
•