mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
docu
This commit is contained in:
parent
f277238d14
commit
f91f34c626
@ -805,6 +805,7 @@ class BranchManger {
|
|||||||
int deep = 0;
|
int deep = 0;
|
||||||
while( parent != null ) {
|
while( parent != null ) {
|
||||||
if( parent.startOp == WasmBlockOperator.LOOP && parent.startPos == jump ) {
|
if( parent.startOp == WasmBlockOperator.LOOP && parent.startPos == jump ) {
|
||||||
|
// the loop instruction itself doesn’t result in an iteration, instead a br 0 instruction causes the loop to repeat
|
||||||
parent.add( new BranchNode( start, start, WasmBlockOperator.BR, null, deep ) ); // continue to the start of the loop
|
parent.add( new BranchNode( start, start, WasmBlockOperator.BR, null, deep ) ); // continue to the start of the loop
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user