| 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 474e41dc99c07d6e488bc3edff25a573b56176fe..dc281e79a6e2252971a5ccf5e79e8a5582ce2480 100644
|
| --- a/src/compiler/arm/code-generator-arm.cc
|
| +++ b/src/compiler/arm/code-generator-arm.cc
|
| @@ -1392,7 +1392,11 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
|
| destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
|
| switch (src.type()) {
|
| case Constant::kInt32:
|
| - __ mov(dst, Operand(src.ToInt32()));
|
| + if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
|
| + __ mov(dst, Operand(src.ToInt32(), src.rmode()));
|
| + } else {
|
| + __ mov(dst, Operand(src.ToInt32()));
|
| + }
|
| break;
|
| case Constant::kInt64:
|
| UNREACHABLE();
|
|
|