generate static atom hash in StaticAtoms.py

RESOLVED FIXED in Firefox 63

Status

()

defect
RESOLVED FIXED
11 months ago
11 months ago

People

(Reporter: heycam, Assigned: heycam)

Tracking

Trunk
mozilla63
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox63 fixed)

Details

Attachments

(1 attachment)

Currently static atom hashes are generated at compile time by reference to a constexpr mozilla::HashString function.  In bug 1474793 I need to know the hash value at Rust compile time too.  To avoid duplication, I will move the hash generation into StaticAtoms.py so that both nsGkAtoms.cpp and regen-atoms.py can access it.
Comment on attachment 8999839 [details]
Bug 1483121 - Generate static atom hash in StaticAtoms.py. r?njn,emilio

Emilio Cobos Álvarez (:emilio) has approved the revision.
Attachment #8999839 - Flags: review+
Comment on attachment 8999839 [details]
Bug 1483121 - Generate static atom hash in StaticAtoms.py. r?njn,emilio

Nicholas Nethercote [:njn] has approved the revision.
Attachment #8999839 - Flags: review+
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0a8334bbcf45
Generate static atom hash in StaticAtoms.py. r=njn,emilio
Backed out because Bug 1482782 was backed out and it was conflicting on "xpcom/ds/nsGkAtoms.cpp".
Flags: needinfo?(cam)
Backout by nbeleuzu@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f3f6f10edab2
Backed out 8 changesets (bug 1483121, bug 1482782) for build bustages on nsDirectoryService.cpp. CLOSED TREE
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e6a44943b177
Generate static atom hash in StaticAtoms.py. r=njn,emilio
Flags: needinfo?(cam)
https://hg.mozilla.org/mozilla-central/rev/e6a44943b177
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Depends on: 1483526
Assignee: nobody → cam
You need to log in before you can comment on or make changes to this bug.