Closed Bug 1599104 Opened 5 years ago Closed 5 years ago

More JSFunction cleanups to support LazyScript/JSScript merge

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(3 files)

A few more patches to hide the underlying LazyScript/JSScript from users of JSFunction. This makes the transistion to a unified script easier.

The 'function()' method is already defined on BaseScript, so this is
straightforward to fix.

Hide the check for LazyScript vs JSScript inside an accessor function.

Depends on D54525

Split out the self-hosted handling from delazifyLazilyInterpretedFunction
since it will need to be handled differently when LazyScript merges with
JSScript.

Depends on D54526

Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae08d265de84 Simplify JSFunction::maybeCanonicalFunction(). r=jandem https://hg.mozilla.org/integration/autoland/rev/d4d888235266 Add JSFunction::enclosingScope(). r=jandem https://hg.mozilla.org/integration/autoland/rev/da943611acea Add JSFunction::delazifySelfHostedLazyFunction(). r=jandem
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: