Closed
Bug 1847758
Opened 3 years ago
Closed 2 years 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•3 years ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
| Assignee | ||
Updated•3 years ago
|
Type: defect → task
| Assignee | ||
Comment 1•3 years 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•2 years ago
|
||
This will be handled as part of bug 1850344, by merging them into extended-known atoms.
You need to log in
before you can comment on or make changes to this bug.
Description
•