Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 81017b39e17fe6499400ddb37e0c495582a0e3d0..fa6c710c279c3e0821766204958224c27c0bedd4 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -1114,6 +1114,14 @@ void MacroAssembler::Set(Register dst, int64_t x) { |
} |
} |
+void MacroAssembler::Set(Register dst, int64_t x, RelocInfo::Mode rmode) { |
+ if (rmode == RelocInfo::WASM_MEMORY_REFERENCE) { |
+ DCHECK(x != 0); |
+ movq(dst, x, rmode); |
+ } else { |
+ DCHECK(RelocInfo::IsNone(rmode)); |
+ } |
+} |
void MacroAssembler::Set(const Operand& dst, intptr_t x) { |
if (kPointerSize == kInt64Size) { |