Index: src/compiler/arm64/instruction-selector-arm64.cc |
diff --git a/src/compiler/arm64/instruction-selector-arm64.cc b/src/compiler/arm64/instruction-selector-arm64.cc |
index ee493cb75367f9b5077a262b439166383a4078a9..72661af4c381f810fcb04a6e546bb7f29a66f6e8 100644 |
--- a/src/compiler/arm64/instruction-selector-arm64.cc |
+++ b/src/compiler/arm64/instruction-selector-arm64.cc |
@@ -390,10 +390,8 @@ void InstructionSelector::VisitCheckedLoad(Node* node) { |
UNREACHABLE(); |
return; |
} |
- InstructionOperand* offset_operand = g.UseRegister(offset); |
- Emit(opcode | AddressingModeField::encode(kMode_MRR), |
- g.DefineAsRegister(node), offset_operand, g.UseRegister(length), |
- g.UseRegister(buffer), offset_operand); |
+ Emit(opcode, g.DefineAsRegister(node), g.UseRegister(buffer), |
+ g.UseRegister(offset), g.UseOperand(length, kArithmeticImm)); |
} |
@@ -425,10 +423,8 @@ void InstructionSelector::VisitCheckedStore(Node* node) { |
UNREACHABLE(); |
return; |
} |
- InstructionOperand* offset_operand = g.UseRegister(offset); |
- Emit(opcode | AddressingModeField::encode(kMode_MRR), nullptr, offset_operand, |
- g.UseRegister(length), g.UseRegister(value), g.UseRegister(buffer), |
- offset_operand); |
+ Emit(opcode, nullptr, g.UseRegister(buffer), g.UseRegister(offset), |
+ g.UseOperand(length, kArithmeticImm), g.UseRegister(value)); |
} |