Closed Bug 1604064 Opened 5 years ago Closed 5 years ago

Cleanup js::BaseScript flag accessors

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(2 files)

Bug 1569063 added standard accessors for BaseScript::ImmutableFlags but did not remove pre-existing aliases. It makes sense to remove those aliases now for consistency.

As well, we should assert-the-world that flags have the same meaning before and after delazification and document the exceptions.

These aliases were historical inconsistencies between lazy and non-lazy
scripts and consistent names should now be used instead.

Add a CheckFlagsOnDelazification helper method to check the script flags
entering and leaving the delazification process and documenting the
exceptions where the parsers generate different results.

Depends on D57250

Blocks: 1604179
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/71ca86752153 Remove BaseScript::ImmutableFlags aliases. r=jandem https://hg.mozilla.org/integration/autoland/rev/be456ba9f55c Assert script flags are consistent when delazifying. r=jandem,jorendorff
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
See Also: → 1604792
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: