mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +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())
|
if (!duplicateTop())
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
case JSOP_SWAP:
|
case JSOP_SWAP: {
|
||||||
if (stackDepth_ < 2)
|
if (stackDepth_ < 2)
|
||||||
return false;
|
return false;
|
||||||
LoongArchReg tmp = stack_[stackDepth_ - 1];
|
LoongArchReg tmp = stack_[stackDepth_ - 1];
|
||||||
stack_[stackDepth_ - 1] = stack_[stackDepth_ - 2];
|
stack_[stackDepth_ - 1] = stack_[stackDepth_ - 2];
|
||||||
stack_[stackDepth_ - 2] = tmp;
|
stack_[stackDepth_ - 2] = tmp;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case JSOP_TONUMERIC:
|
case JSOP_TONUMERIC:
|
||||||
case JSOP_CHECKLEXICAL:
|
case JSOP_CHECKLEXICAL:
|
||||||
case JSOP_LOOPENTRY:
|
case JSOP_LOOPENTRY:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue