Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index f77db12569ace6a849a70de3847e89c374ff38fb..27e30036455e50e50321c4f9b8f1d734e35879eb 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -2013,7 +2013,11 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
__ li(dst, isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); |
break; |
case Constant::kInt64: |
- __ li(dst, Operand(src.ToInt64())); |
+ if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) { |
+ __ li(dst, Operand(src.ToInt64(), src.rmode())); |
+ } else { |
+ __ li(dst, Operand(src.ToInt64())); |
+ } |
break; |
case Constant::kFloat64: |
__ li(dst, isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); |