mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #3049 - Adapt loongarch64 JIT glue to older JS APIs
This commit is contained in:
parent
acea3a2b6b
commit
9533e7734c
6 changed files with 33 additions and 16 deletions
|
|
@ -6570,7 +6570,7 @@ CodeGenerator::visitAbsI(LAbsI* ins)
|
|||
masm.branchTest32(Assembler::NotSigned, input, input, &positive);
|
||||
masm.neg32(input);
|
||||
LSnapshot* snapshot = ins->snapshot();
|
||||
#if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_MIPS64)
|
||||
#if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONGARCH64)
|
||||
if (snapshot)
|
||||
bailoutCmp32(Assembler::Equal, input, Imm32(INT32_MIN), snapshot);
|
||||
#else
|
||||
|
|
@ -8428,7 +8428,7 @@ CodeGenerator::visitOutOfLineStoreElementHole(OutOfLineStoreElementHole* ool)
|
|||
// If index > initializedLength, call a stub. Note that this relies on the
|
||||
// condition flags sticking from the incoming branch.
|
||||
Label callStub;
|
||||
#if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_MIPS64)
|
||||
#if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONGARCH64)
|
||||
// Had to reimplement for MIPS because there are no flags.
|
||||
if (unboxedType == JSVAL_TYPE_MAGIC) {
|
||||
Address initLength(elements, ObjectElements::offsetOfInitializedLength());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue