mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Issue #3049 - Fix switch scoping in minimal LoongArch JIT
This commit is contained in:
parent
b609f3719d
commit
ba01d5f92e
1 changed files with 2 additions and 1 deletions
|
|
@ -444,13 +444,14 @@ class MinimalLoongArchCompiler
|
|||
if (!duplicateTop())
|
||||
return false;
|
||||
break;
|
||||
case JSOP_SWAP:
|
||||
case JSOP_SWAP: {
|
||||
if (stackDepth_ < 2)
|
||||
return false;
|
||||
LoongArchReg tmp = stack_[stackDepth_ - 1];
|
||||
stack_[stackDepth_ - 1] = stack_[stackDepth_ - 2];
|
||||
stack_[stackDepth_ - 2] = tmp;
|
||||
break;
|
||||
}
|
||||
case JSOP_TONUMERIC:
|
||||
case JSOP_CHECKLEXICAL:
|
||||
case JSOP_LOOPENTRY:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue