Closed Bug 1689696 Opened 4 years ago Closed 4 years ago

Use clearer name for WellKnownParserAtoms_ROM and StaticStrings constants

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

WellKnownParserAtoms_ROM and StaticStrings shares some definitions,
and uses different definitions in some case.
it's better using same naming convention, and unify more part if possible.

Given it's a table for optimization purpose, the name should be explicit.

Depends on D103542

This is necessary to use the result of StaticStrings::getLength2IndexStatic
in switch-case.

Depends on D103545

Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/e37d99797ded Part 1: Rename SmallCharArray to SmallCharTable. r=nbp https://hg.mozilla.org/integration/autoland/rev/f492dece6fc8 Part 2: Share NUM_LENGTH2_ENTRIES constant. r=nbp https://hg.mozilla.org/integration/autoland/rev/6277b1471a52 Part 3: Add StaticStrings::{firstCharOfLength2,secondCharOfLength2}. r=nbp https://hg.mozilla.org/integration/autoland/rev/dd79655ccf40 Part 4: Add comment about frontend-VM map for well-known/static atom table. r=nbp https://hg.mozilla.org/integration/autoland/rev/54f702a54f06 Part 5: Use toSmallChar in getLength2IndexStatic to make it always constexpr. r=nbp
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: