Closed Bug 1660699 Opened 4 years ago Closed 4 years ago

Store JSAtom in CompilationInfo instead of ParserAtom

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

ParserAtom is part of stencil and it shouldn't contain GC pointer
we should move it into CompilationInfo (eventually CompilationGCOutput in bug 1649968) and store index into it in ParserAtom

Blocks: 1658556
No longer blocks: stencil

ParserAtom now holds either AtomIndex that is an index into
CompilationInfo.atoms, or WellKnownAtomKind that maps to cx->names() fields.

ParserAtoms in WellKnownParserAtoms holds WellKnownAtomKind,
and ParserAtoms in CompilationInfo.parserAtoms holds AtomIndex.

GetWellKnownAtom relies on the struct layout of JSAtomState, to
quickly map WellKnownParserAtoms to its field.

Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/4b43e587a0bc
Store JSAtom in CompilationInfo. r=tcampbell
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: