Sign in
webkit
/
WebKit
/
293423b2e3bc99a3b6b08c9e39c59d8eb89f00e1
/
.
/
JSTests
/
stress
/
dead-speculating-argument-use.js
blob: 5f3ebfcb5218e68aba66f819d6dd82df7fa0cc1c [
file
] [
log
] [
blame
]
function
foo
(
x
)
{
var
tmp
=
x
+
1
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
foo
(
i
);
var
didCall
=
false
;
var
o
=
{
valueOf
:
function
()
{
didCall
=
true
;
}
};
foo
(
o
);
if
(!
didCall
)
throw
"Error: didn't call valueOf"
;