Open
Bug 1973117
Opened 23 hours ago
Updated 19 hours ago
Use packed elements check for StoreDenseElement
Categories
(Core :: JavaScript Engine: JIT, task, P2)
Core
JavaScript Engine: JIT
Tracking
()
ASSIGNED
People
(Reporter: iain, Assigned: iain)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
In bug 1971446, we remove some hole checks from dense element access by instead checking the packed elements flag, which can be hoisted out of a loop. Jan pointed out that making a similar change to MStoreElement might help us common up even more checks.
Assignee | ||
Comment 1•22 hours ago
|
||
My quick prototype indicates that this is about a 20% improvement on a microbenchmark like this:
function foo(arr) {
for (var i = 0; i < arr.length; i++) {
arr[i] += 1;
}
}
Assignee | ||
Comment 2•22 hours ago
|
||
Updated•22 hours ago
|
Assignee: nobody → iireland
Status: NEW → ASSIGNED
You need to log in
before you can comment on or make changes to this bug.
Description
•