<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Implement control flow statements in WebAssembly"
href="https://bugs.webkit.org/show_bug.cgi?id=148934#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Implement control flow statements in WebAssembly"
href="https://bugs.webkit.org/show_bug.cgi?id=148934">bug 148934</a>
from <span class="vcard"><a class="email" href="mailto:sukolsak@gmail.com" title="Sukolsak Sakshuwong <sukolsak@gmail.com>"> <span class="fn">Sukolsak Sakshuwong</span></a>
</span></b>
<pre>Thanks!
(In reply to <a href="show_bug.cgi?id=148934#c4">comment #4</a>)
<span class="quote">> Comment on <span class=""><a href="attachment.cgi?id=260742&action=diff" name="attach_260742" title="Patch">attachment 260742</a> <a href="attachment.cgi?id=260742&action=edit" title="Patch">[details]</a></span>
> Patch
>
> View in context:
> <a href="https://bugs.webkit.org/attachment.cgi?id=260742&action=review">https://bugs.webkit.org/attachment.cgi?id=260742&action=review</a>
>
> r=me
>
> > Source/JavaScriptCore/wasm/WASMFunctionCompiler.h:407
> > + void endLabel()
> > + {
> > + linkTarget(m_breakLabelTargets.last());
> > +
> > + m_breakLabelTargets.removeLast();
> > + m_continueLabelTargets.removeLast();
> > + }
>
> Is it guaranteed that WASM can't have arbitrary gotos? (An arbitrary goto
> would make the push/pop model of labels invalid.)</span >
goto is not part of the MVP, but it is under consideration for a future version. <<a href="https://github.com/WebAssembly/design/blob/master/FutureFeatures.md#more-expressive-control-flow">https://github.com/WebAssembly/design/blob/master/FutureFeatures.md#more-expressive-control-flow</a>> The WASM format that we are using doesn't have goto.</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>