Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index b7d92930987e833a2476bd300ba100197630dc49..692b96553559a7882ff54e3897413578f5903213 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -1520,7 +1520,8 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
destination->IsRegister() ? g.ToRegister(destination) : kScratchReg; |
switch (src.type()) { |
case Constant::kInt32: |
- if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) { |
+ if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
+ src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
__ mov(dst, Operand(src.ToInt32(), src.rmode())); |
} else { |
__ mov(dst, Operand(src.ToInt32())); |