<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - ObjectAllocationSinkingPhase::insertOSRHintsForUpdate() fails to emit updated hints in some cases"
href="https://bugs.webkit.org/show_bug.cgi?id=161492#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - ObjectAllocationSinkingPhase::insertOSRHintsForUpdate() fails to emit updated hints in some cases"
href="https://bugs.webkit.org/show_bug.cgi?id=161492">bug 161492</a>
from <span class="vcard"><a class="email" href="mailto:fpizlo@apple.com" title="Filip Pizlo <fpizlo@apple.com>"> <span class="fn">Filip Pizlo</span></a>
</span></b>
<pre>100% repro:
function bar()
{
}
noInline(bar);
function foo(p, x)
{
var value = 1;
function inc()
{
return value + 1;
}
function dec()
{
return value - 1;
}
if (!p)
return 0;
bar(inc);
x += 2000000000;
value = 42;
return dec();
}
noInline(foo);
function test(x)
{
var result = foo(true, x);
if (result != 42 - 1)
throw "Error: bad result: " + result;
}
for (var i = 0; i < 100000; ++i)
test(0);
test(2000000000);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>