Skip to content

Commit

Permalink
Fix profileOffset increment
Browse files Browse the repository at this point in the history
  • Loading branch information
mbovel committed Jul 22, 2020
1 parent 1bb787e commit 739366a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ public int execute(WasmContext context, VirtualFrame frame) {
intConstantOffset += block.intConstantLength();
longConstantOffset += block.longConstantLength();
branchTableOffset += block.branchTableLength();
profileOffset += block.profileCount();
break;
}
case LOOP: {
Expand Down Expand Up @@ -419,6 +420,7 @@ public int execute(WasmContext context, VirtualFrame frame) {
intConstantOffset += loopBody.intConstantLength();
longConstantOffset += loopBody.longConstantLength();
branchTableOffset += loopBody.branchTableLength();
profileOffset += loopBody.profileCount();
break;
}
case IF: {
Expand All @@ -437,6 +439,7 @@ public int execute(WasmContext context, VirtualFrame frame) {
intConstantOffset += ifNode.intConstantLength();
longConstantOffset += ifNode.longConstantLength();
branchTableOffset += ifNode.branchTableLength();
profileOffset += ifNode.profileCount();
break;
}
case ELSE:
Expand Down

0 comments on commit 739366a

Please sign in to comment.