Skip to content

Commit

Permalink
fix build (mozilla#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
luyahan committed Aug 26, 2022
1 parent 0820955 commit 9145e82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions js/src/jit/riscv64/MacroAssembler-riscv64-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,9 @@ void MacroAssembler::xorPtr(Register, Register) {
}
//}}} check_macroassembler_style

void MacroAssemblerRiscv64Compat::incrementInt32Value(const Address& addr) {
asMasm().add32(Imm32(1), addr);
}
} // namespace jit
} // namespace js

Expand Down
4 changes: 0 additions & 4 deletions js/src/jit/riscv64/MacroAssembler-riscv64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -738,10 +738,6 @@ void MacroAssemblerRiscv64Compat::wasmLoadI64Impl(
MOZ_CRASH("Unimplement riscv");
}

void MacroAssemblerRiscv64Compat::incrementInt32Value(Address const&) {
MOZ_CRASH("Unimplement riscv");
}

void MacroAssemblerRiscv64Compat::wasmStoreI64Impl(
const wasm::MemoryAccessDesc& access,
Register64 value,
Expand Down
4 changes: 1 addition & 3 deletions js/src/jit/riscv64/MacroAssembler-riscv64.h
Original file line number Diff line number Diff line change
Expand Up @@ -1024,9 +1024,7 @@ class MacroAssemblerRiscv64Compat : public MacroAssemblerRiscv64 {
public:
// The following functions are exposed for use in platform-shared code.

void incrementInt32Value(const Address& addr) {
asMasm().add32(Imm32(1), addr);
}
inline void incrementInt32Value(const Address& addr);

void move32(Imm32 imm, Register dest);
void move32(Register src, Register dest);
Expand Down

0 comments on commit 9145e82

Please sign in to comment.