Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 77c43f1d557230ca1c1dba4a95638629d05628fe..0c31809588befb995187f4fc66431a936e36dfa2 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -1111,6 +1111,15 @@ |
movq(dst, Immediate(static_cast<int32_t>(x))); |
} else { |
movq(dst, 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)); |
} |
} |