Sign in
webkit
/
WebKit
/
6ddc9d48eb4dde936b8551b5167248cba0f85d9c
/
.
/
JSTests
/
stress
/
movhint-backwards-propagation-must-merge-use-as-value.js
blob: 09772de878c99b67ff65cace6b0cee566523e57d [
file
] [
log
] [
blame
]
function
foo
(
v
,
a
,
b
)
{
if
(
v
)
{
let r
=
a
/
b
;
OSRExit
();
return
r
;
}
}
noInline
(
foo
);
for
(
let i
=
0
;
i
<
10000
;
++
i
)
{
let r
=
foo
(
true
,
4
,
4
);
if
(
r
!==
1
)
throw
new
Error
(
"Bad!"
);
}
if
(
foo
(
true
,
1
,
4
)
!==
0.25
)
throw
new
Error
(
"Bad!"
);