Store dense and TypedArray index in PropertyResult
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox84 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(3 files)
Currently we can store a property Shape in PropertyResult, but for dense/typed elements we don't store anything. When we use the PropertyResult, we mostly use JSID_TO_INT(id) for dense/typed lookups, but for large typed arrays (bug 1673557) this won't work because we need to support indexes larger than JSID_INT_MAX (= INT32_MAX).
We determine the actual index (and bounds check this) when we do the lookup, so if we store this in PropertyResult the consumers can then just use that instead of JSID_TO_INT.
| Assignee | ||
Comment 1•5 years ago
|
||
This refactors PropertyResult so that we can also store indexes. This will help
us support typed arrays larger than 2 GB because it lets us replace JSID_TO_INT
(limited to INT32_MAX) with the size_t we stored.
| Assignee | ||
Comment 2•5 years ago
|
||
Depends on D95141
| Assignee | ||
Comment 3•5 years ago
|
||
This way we don't truncate the size_t passed from PropertyResult.
Depends on D95142
Comment 5•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d4bb71e5cae6
https://hg.mozilla.org/mozilla-central/rev/10f13dde0b9a
https://hg.mozilla.org/mozilla-central/rev/95d76c4e7057
Description
•