Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 1fdf22d3f2030c10c10e91d743b534e9b8b31232..dbd23e4a555fe26e048b45b4514a89852f754306 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -1113,6 +1113,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)); |
} |
} |