未验证 提交 00858e42 编写于 作者: K Katelyn Gadd 提交者: GitHub

[wasm] Fix missing branch target table update (#83236)

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.
上级 27b4b73c
......@@ -2396,6 +2396,7 @@ function emit_branch (
// 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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册