!9126 Fix jump bug

Merge pull request !9126 from yycc/fixjump
This commit is contained in:
openharmony_ci 2024-09-12 00:50:16 +00:00 committed by Gitee
commit fa4a5954f7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 2 deletions

View File

@ -901,8 +901,7 @@ void BytecodeCircuitBuilder::NewJump(BytecodeRegion &bb)
GateRef state = frameStateBuilder_.GetCurrentState();
GateRef depend = frameStateBuilder_.GetCurrentDepend();
size_t numValueInputs = bytecodeInfo.ComputeValueInputCount();
if (bytecodeInfo.IsCondJump()) { // 2: two succ
ASSERT(bb.succs.size() == 2);
if (bytecodeInfo.IsCondJump() && bb.succs.size() == 2) { // 2: two succ
size_t pcOffset = GetPcOffset(iterator.Index());
auto methodOffset = method_->GetMethodId().GetOffset();
auto meta = circuit_->JSBytecode(

View File

@ -33,4 +33,10 @@ function bar(a) {
}
}
let o={}
try {
if (o.webView) {}
} catch (e) {
}
print("compiler succ")