Issue #3049 - Fix loongarch64 string extraction in JIT stubs

This commit is contained in:
Basilisk-Dev 2026-04-24 14:30:54 -04:00 • committed by wuggy
commit 2bc0085021
2 changed files with 8 additions and 2 deletions

View file

@ -1656,10 +1656,12 @@ class MacroAssembler : public MacroAssemblerSpecific
Register temp, Label* failure); Register temp, Label* failure);
Register extractString(const Address& address, Register scratch) { Register extractString(const Address& address, Register scratch) {
return extractObject(address, scratch); unboxString(address, scratch);
return scratch;
} }
Register extractString(const ValueOperand& value, Register scratch) { Register extractString(const ValueOperand& value, Register scratch) {
return extractObject(value, scratch); unboxString(value, scratch);
return scratch;
} }
using MacroAssemblerSpecific::extractTag; using MacroAssemblerSpecific::extractTag;

View file

@ -2764,6 +2764,10 @@ template void MacroAssembler::storeUnboxedValue(const ConstantOrRegister& value,
MIRType valueType, MIRType valueType,
const Address& dest, const Address& dest,
MIRType slotType); MIRType slotType);
template void MacroAssembler::storeUnboxedValue(const ConstantOrRegister& value,
MIRType valueType,
const BaseIndex& dest,
MIRType slotType);
template void MacroAssembler::storeUnboxedValue( template void MacroAssembler::storeUnboxedValue(
const ConstantOrRegister& value, MIRType valueType, const ConstantOrRegister& value, MIRType valueType,
const BaseObjectElementIndex& dest, MIRType slotType); const BaseObjectElementIndex& dest, MIRType slotType);