| Index: src/compiler/arm64/code-generator-arm64.cc
|
| diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc
|
| index 5eb57c129ea91172fda28d4ff3a4ce94025d1cb0..0a102366bfda83bf9983fbdfce31d7987e7d8a10 100644
|
| --- a/src/compiler/arm64/code-generator-arm64.cc
|
| +++ b/src/compiler/arm64/code-generator-arm64.cc
|
| @@ -185,7 +185,11 @@ class Arm64OperandConverter final : public InstructionOperandConverter {
|
| case Constant::kInt32:
|
| return Operand(constant.ToInt32());
|
| case Constant::kInt64:
|
| - return Operand(constant.ToInt64());
|
| + if (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
|
| + return Operand(constant.ToInt64(), constant.rmode());
|
| + } else {
|
| + return Operand(constant.ToInt64());
|
| + }
|
| case Constant::kFloat32:
|
| return Operand(
|
| isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED));
|
|
|