Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
JSTests
/
microbenchmarks
/
inline-arguments-access.js
blob: 2536d071564473619028354fda86c45537530f0c [
file
] [
log
] [
blame
]
function
foo
()
{
return
arguments
[
0
]
+
arguments
[
1
]
+
arguments
[
2
];
}
function
bar
(
a
,
b
,
c
)
{
return
foo
(
b
,
c
,
42
);
}
for
(
var
i
=
0
;
i
<
200000
;
++
i
)
{
var
result
=
bar
(
1
,
2
,
3
);
if
(
result
!=
47
)
throw
"Bad result: "
+
result
;
}