Closed Bug 1639612 Opened 4 years ago Closed 4 years ago

Factor *Scope::Data structures into GC, Non-GC, and NamesList components.

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: djvj, Assigned: djvj)

References

Details

Attachments

(1 file)

This is a blocker for atoms translation work. All the current Scope::Data structures are used both by VM-lifetime Scope structures (e.g. LiteralScope, VarScope, etc.) as well as by parser-internal code (within FunctionBox, for example).

The parser-internal code needs to reference the parser representation of atoms, while
the overall structure should be one that's easily translateable to the corresponding in-vm Scope::Data type.

The plan here is to abstract the implementation of TrailingNamesArray, as well as pull the non-gc fields of the various Scope::Data structures into their own corresponding Fields structs.

This lets the parser later implement its own surrogates for the ::Data structures that use parser-internal name representations.

Assignee: nobody → kvijayan
Status: NEW → ASSIGNED
Severity: -- → N/A
Priority: -- → P2
Blocks: 1642716
Pushed by kvijayan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1f1873b1c400
Reorganize Scope::Data structures to factor out non-GC state used by the parser. r=tcampbell
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: