From f91f34c62676d8ac6aa03d906824338ac93b4ebe Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sun, 3 May 2020 21:42:10 +0200 Subject: [PATCH] docu --- src/de/inetsoftware/jwebassembly/module/BranchManger.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/de/inetsoftware/jwebassembly/module/BranchManger.java b/src/de/inetsoftware/jwebassembly/module/BranchManger.java index 1287543..3cd0a17 100644 --- a/src/de/inetsoftware/jwebassembly/module/BranchManger.java +++ b/src/de/inetsoftware/jwebassembly/module/BranchManger.java @@ -805,6 +805,7 @@ class BranchManger { int deep = 0; while( parent != null ) { 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 return; }