| 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 5eec65ac81827417f6ad7f4898adcfb8751632db..c2d89929a22b67eff1766f95771b4a899b22816b 100644
|
| --- a/src/compiler/arm64/code-generator-arm64.cc
|
| +++ b/src/compiler/arm64/code-generator-arm64.cc
|
| @@ -183,11 +183,16 @@ class Arm64OperandConverter final : public InstructionOperandConverter {
|
| Constant constant = ToConstant(operand);
|
| switch (constant.type()) {
|
| case Constant::kInt32:
|
| - return Operand(constant.ToInt32());
|
| + if (constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
|
| + return Operand(constant.ToInt32(), constant.rmode());
|
| + } else {
|
| + return Operand(constant.ToInt32());
|
| + }
|
| case Constant::kInt64:
|
| if (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
|
| return Operand(constant.ToInt64(), constant.rmode());
|
| } else {
|
| + DCHECK(constant.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE);
|
| return Operand(constant.ToInt64());
|
| }
|
| case Constant::kFloat32:
|
|
|