Closed Bug 1593923 Opened 6 years ago Closed 6 years ago

[BinAST] De-duplicate the info about atom

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

In context format, we have 2 places to store atoms, one is BinASTSourceMetadata, and one is BinASTSymbol in Huffman tables.

practically, we just don't need the former after creating the tables, so we can omit that part from metadata and instead store tables.
but might have to think about how XDR works.

Summary: [BinAST] Re-duplicate the info about atom → [BinAST] De-duplicate the info about atom

(In reply to Tooru Fujisawa [:arai] from comment #0)

practically, we just don't need the former after creating the tables, so we can omit that part from metadata and instead store tables.

this was wrong that table can contain same atom multiple times, and serializing/tracing them isn't efficient.
we should convert the table to point atom in the lists in metadata, instead of directly pointing the atom

To store dictionary to BinASTSourceMetadata, JSAtom* needs to be stored
in the single place.

Depends on D52028

Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/297273a3b34a Store the index into BinASTSourceMetadata::getAtom in BinASTSymbol instead of JSAtom*. r=Yoric
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: