Closed
Bug 1847758
Opened 1 year ago
Closed 11 months ago
pre-calculate length and hash for dom::PinnedStringId::init
Categories
(Core :: DOM: Bindings (WebIDL), task, P3)
Core
DOM: Bindings (WebIDL)
Tracking
()
RESOLVED
DUPLICATE
of bug 1850344
People
(Reporter: arai, Assigned: arai)
References
(Blocks 1 open bug)
Details
class PinnedStringId {
...
bool init(JSContext* cx, const char* string) {
JSString* str = JS_AtomizeAndPinString(cx, string);
the consumer of PinnedStringId::init
is auto-generated from webidl, and the length and the hash can be pre-calculated either in the bindgen or compile-time.
bool
APZBucket::InitIds(JSContext* cx, APZBucketAtoms* atomsCache)
...
if (!atomsCache->sequenceNumber_id.init(cx, "sequenceNumber") ||
!atomsCache->scrollFrames_id.init(cx, "scrollFrames")) {
Assignee | ||
Updated•1 year ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Assignee | ||
Updated•1 year ago
|
Type: defect → task
Assignee | ||
Comment 1•1 year ago
|
||
this might become unnecessary if we can extend the well-known atoms with gecko atoms in bug 1848278.
See Also: → 1848278
Assignee | ||
Comment 2•11 months ago
|
||
This will be handled as part of bug 1850344, by merging them into extended-known atoms.
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1850344
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•