Closed Bug 1608034 Opened 6 years ago Closed 5 years ago

Clean up EnvironmentObject shape teleporting code

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: jandem, Assigned: jandem)

Details

Attachments

(2 files)

Environment objects are currently marked as 'delegate' and we can call PurgeEnvironmentChainHelper on them, but we no longer rely on shape teleporting of environment chains anywhere.

If we stop making them delegates we can remove/simplify PurgeEnvironmentChainHelper and fold it into PurgeProtoChain.

We don't rely on this anymore so we can stop marking environment objects as 'delegate'
and simplify PurgeEnvironmentChainHelper.

Now that this flag is on BaseScript we don't need a non-lazy BaseScript anymore.

Depends on D59281

Attachment #9119665 - Attachment description: Bug 1608034 part 2 - Simplify FunHasExtensibleScope check in NeedEnvironmentShapeGuard. r?tcampbell! → Bug 1608034 part 2 - Tweak FunHasExtensibleScope check in NeedEnvironmentShapeGuard. r?tcampbell!
Priority: -- → P1
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/515fe2235e71 part 1 - Remove shape teleporting code for environment objects. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/6ed1ed2c7b85 part 2 - Tweak FunHasExtensibleScope check in NeedEnvironmentShapeGuard. r=tcampbell
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: