Sign in
webkit
/
WebKit
/
836e821ba12ece51c9e96da322c23ddcb72e66b7
/
.
/
JSTests
/
microbenchmarks
/
varargs-call.js
blob: bb540868ce8701ce2c80bc67c46cd0f11b9deac9 [
file
] [
log
] [
blame
]
function
foo
(
a
,
b
)
{
return
a
+
b
;
}
noInline
(
foo
);
function
bar
()
{
return
foo
.
apply
(
null
,
arguments
);
}
noInline
(
bar
);
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
{
var
result
=
bar
(
1
,
2
);
if
(
result
!=
3
)
throw
"Error: bad result: "
+
result
;
}