Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index 4c2f6e80dfb78459a22684bf2c7ab9168ca14188..d7e4aad9ffaf600f47e0e9bafb1ca30eed3a8e1c 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -2458,7 +2458,11 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
if (value == 0) { |
__ xorl(dst, dst); |
} else { |
- __ movl(dst, Immediate(value)); |
+ if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
+ __ movl(dst, Immediate(value, src.rmode())); |
+ } else { |
+ __ movl(dst, Immediate(value)); |
+ } |
} |
} |
break; |