4 for (var i
= 0; i
< o
.length
; ++i
)
5 o
[i
] = i
; // The first iteration is special as it makes indexed storage. If the DFG doesn't know how to optimize that and instead calls a C function, then this benchmark may not run so quickly.
11 for (var i
= 0; i
< o
.length
; ++i
)
17 for (var i
= 0; i
< 2000; ++i
)
18 result
+= sum(foo(100));
20 if (result
!= 9900000)
21 throw "Error: bad result: " + result
;