Move the |active| flag from BaselineScript to TypeScript
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(4 files)
Before we discard JIT code we set the |active| flag on BaselineScripts that are on the stack to ensure we don't discard these scripts.
Similarly, the Baseline interpreter won't like the TypeScript/ICScript being pulled from under interpreter frames so we have to move the flag to TypeScript instead.
Assignee | ||
Comment 1•6 years ago
|
||
Patches for this coming up. I ended up cleaning up some TypeScript design issues that make TypeScript a lot nicer to work with and it will make it easier to merge with ICScript and/or rename to JitScript in the future.
Assignee | ||
Comment 2•6 years ago
|
||
Baseline interpreter frames will have a TypeScript/ICScript we want to keep
around on GC.
The JSScript::typesDontCheckGeneration method will be removed in the next patch.
Assignee | ||
Comment 3•6 years ago
|
||
As we add more fields to TypeScript (= JitScript in the future), the
AutoSweepTypeScript argument to JSScript::types() is becoming annoying.
This patch moves the argument to TypeScript::typeArray() and
TypeScript::inlinedCompilations() because that's the data affected by type
sweeping.
Depends on D18548
Assignee | ||
Comment 4•6 years ago
|
||
This is pretty straight-forward now and it's much nicer to encapsulate this in
TypeScript instead of having these types-related flags in JSScript.
Depends on D18549
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D18550
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fdc01631d226
https://hg.mozilla.org/mozilla-central/rev/936d2328fb86
https://hg.mozilla.org/mozilla-central/rev/71b541173043
https://hg.mozilla.org/mozilla-central/rev/cd460d5c95f9
Description
•