The jiterpreter was failing to add unconditional branch targets to the branch target table, which could cause branches targeting them to fail and make the trace bail out.
// Simple branches are enabled and this is a forward branch. We
// don't need to wrap things in a block here, we can just exit
// the current branch block after updating eip
+ builder.branchTargets.add(destination);
builder.ip_const(destination);
builder.local("eip", WasmOpcode.set_local);
builder.appendU8(WasmOpcode.br);