Sign in
webkit
/
WebKit
/
6b7c45f751131450b1675ef5b4b89fb3a0e35aba
/
.
/
JSTests
/
microbenchmarks
/
abc-simple-backward-loop.js
blob: f75d7a26481cde1de277a79cb610c1c924c66be2 [
file
] [
log
] [
blame
]
function
foo
(
array
)
{
var
result
=
0
;
for
(
var
i
=
array
.
length
-
1
;
i
>=
0
;
i
--)
result
+=
array
[
i
];
return
result
;
}
noInline
(
foo
);
var
array
=
[];
for
(
var
i
=
0
;
i
<
1000
;
++
i
)
array
.
push
(
i
);
for
(
var
i
=
0
;
i
<
50000
;
++
i
)
foo
(
array
);