<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [MIPS] webkitgtk crashed if JIT is enabled"
href="https://bugs.webkit.org/show_bug.cgi?id=146629#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [MIPS] webkitgtk crashed if JIT is enabled"
href="https://bugs.webkit.org/show_bug.cgi?id=146629">bug 146629</a>
from <span class="vcard"><a class="email" href="mailto:Jeffrey.li@nagra.com" title="Jeffrey <Jeffrey.li@nagra.com>"> <span class="fn">Jeffrey</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=146629#c4">comment #4</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=146629#c3">comment #3</a>)
> > Guillaume, this look OK? You didn't run into this issue...?
>
> I did not run into this issue (yet?), maybe because I've mainly worked with
> jsc only (only compiling WTF/ and JavaScriptCore/).
> I am a little confused by the patch though. I understand that $gp is
> computed by the code of .cpload (emitted by offlineasm for each label),
> which uses $t9. I don't understand how this is different for
> llint_op_catch(), though I didn't study the exception code/protocol, and I
> have a feeling that this is not your regular function, and there might be
> something done with $ra that I did not understand.
>
> > (In reply to <a href="show_bug.cgi?id=146629#c1">comment #1</a>)
> > > Created <span class=""><a href="attachment.cgi?id=256203" name="attach_256203" title="test case for this issue.">attachment 256203</a> <a href="attachment.cgi?id=256203&action=edit" title="test case for this issue.">[details]</a></span>
> > > test case for this issue.
> >
> > Great. This should probably be added as a testcase under LayoutTests/js.</span >
The .cpload uses $ra register to compute the $gp value. The jumpToExceptionHandler() uses $t9 as jump register now. Then in llint_op_catch() function, $ra will get a incorrect value. This will cause the $gp value is incorrect too.</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>