forked from mirrors/gecko-dev
Bug 1822747 - Add a 'pushValue' function in MacroAssembler.r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D172760
This commit is contained in:
parent
b868d5195c
commit
0acabc0198
3 changed files with 6 additions and 3 deletions
|
|
@ -230,7 +230,7 @@ elif CONFIG["JS_CODEGEN_RISCV64"]:
|
||||||
UNIFIED_SOURCES += [
|
UNIFIED_SOURCES += [
|
||||||
"riscv64/Architecture-riscv64.cpp",
|
"riscv64/Architecture-riscv64.cpp",
|
||||||
"riscv64/Assembler-riscv64.cpp",
|
"riscv64/Assembler-riscv64.cpp",
|
||||||
"riscv64/AssemblerMatInt.cpp.cpp",
|
"riscv64/AssemblerMatInt.cpp",
|
||||||
"riscv64/CodeGenerator-riscv64.cpp",
|
"riscv64/CodeGenerator-riscv64.cpp",
|
||||||
"riscv64/constant/Base-constant-riscv.cpp",
|
"riscv64/constant/Base-constant-riscv.cpp",
|
||||||
"riscv64/disasm/Disasm-riscv64.cpp",
|
"riscv64/disasm/Disasm-riscv64.cpp",
|
||||||
|
|
|
||||||
|
|
@ -993,6 +993,10 @@ class MacroAssemblerRiscv64Compat : public MacroAssemblerRiscv64 {
|
||||||
push(scratch);
|
push(scratch);
|
||||||
}
|
}
|
||||||
void pushValue(const Address& addr);
|
void pushValue(const Address& addr);
|
||||||
|
void pushValue(const BaseIndex& addr, Register scratch) {
|
||||||
|
loadValue(addr, ValueOperand(scratch));
|
||||||
|
pushValue(ValueOperand(scratch));
|
||||||
|
}
|
||||||
|
|
||||||
void handleFailureWithHandlerTail(Label* profilerExitTail,
|
void handleFailureWithHandlerTail(Label* profilerExitTail,
|
||||||
Label* bailoutTail);
|
Label* bailoutTail);
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,7 @@ using namespace js::jit;
|
||||||
using mozilla::NegativeInfinity;
|
using mozilla::NegativeInfinity;
|
||||||
using mozilla::PositiveInfinity;
|
using mozilla::PositiveInfinity;
|
||||||
|
|
||||||
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) || \
|
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
|
||||||
defined(JS_CODEGEN_RISCV64s)
|
|
||||||
|
|
||||||
BEGIN_TEST(testJitMacroAssembler_flexibleDivMod) {
|
BEGIN_TEST(testJitMacroAssembler_flexibleDivMod) {
|
||||||
TempAllocator tempAlloc(&cx->tempLifoAlloc());
|
TempAllocator tempAlloc(&cx->tempLifoAlloc());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue