Closed
Bug 650071
Opened 14 years ago
Closed 13 years ago
Optimize |arguments| usage better
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: dmandelin, Unassigned)
References
(Blocks 1 open bug)
Details
From bug 642001 comment 5, we need to make this benchmark faster. One way would be to improve the arguments escape analysis we have. I think v8 might be fast on this mostly because they can allocate |arguments| objects very fast, so this might alternatively be done by waiting for generational GC and then doing arguments a bit differently.
function sc_Pair() {
}
function sc_list() {
var res = null;
var a = arguments;
for (var i = a.length-1; i >= 0; i--)
res = sc_Pair(a[i], res);
return res;
}
var t0 = new Date;
for (var i = 0; i < 1000000; ++i)
sc_list(1, 2, 3);
print(new Date - t0);
Comment 1•14 years ago
|
||
Maybe have a look how much Bug 616744 would help here.
Comment 2•13 years ago
|
||
Fixed by TI, SSA arguments optimization.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•