Sign in
webkit
/
WebKit
/
6b7c45f751131450b1675ef5b4b89fb3a0e35aba
/
.
/
JSTests
/
microbenchmarks
/
get_callee_monomorphic.js
blob: 0eaac00607e59def2760f919f8c25518048fa248 [
file
] [
log
] [
blame
]
function
Foo
()
{
this
.
bar
=
function
()
{
return
1
;
};
}
var
sum
=
0
;
for
(
var
i
=
0
;
i
<
100000
;
i
++)
{
var
f
=
new
Foo
();
sum
+=
f
.
bar
();
}
if
(
sum
!=
100000
)
throw
"Error: incorrect sum. Expected 10000 but got "
+
sum
+
"."
;