Sign in
webkit
/
WebKit
/
77b63b8e6a326c64f4e14dec31520d24b21e7c7f
/
.
/
JSTests
/
microbenchmarks
/
eval-cached.js
blob: 00449a6d2b641c9178ccdbbfe66460e334687c7e [
file
] [
log
] [
blame
]
function
foo
(
string
)
{
let result
=
42
;
for
(
let i
=
0
;
i
<
1000
;
++
i
)
eval
(
string
);
return
result
;
}
noInline
(
foo
);
for
(
let i
=
0
;
i
<
200
;
++
i
)
{
let result
=
foo
(
"++result"
);
if
(
result
!=
42
+
1000
)
throw
"Error: bad result: "
+
result
;
}