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 95dc53c3441e51ff60ab9c9467828a9b8958339d..30502441896f84b143a1830d35e13d05bebc915d 100644 |
--- a/src/compiler/arm64/instruction-selector-arm64.cc |
+++ b/src/compiler/arm64/instruction-selector-arm64.cc |
@@ -147,7 +147,7 @@ static void VisitBinop(InstructionSelector* selector, Node* node, |
static void VisitBinop(InstructionSelector* selector, Node* node, |
ArchOpcode opcode, ImmediateMode operand_mode) { |
FlagsContinuation cont; |
- VisitBinop(selector, node, opcode, operand_mode); |
+ VisitBinop(selector, node, opcode, operand_mode, &cont); |
} |
@@ -247,7 +247,7 @@ void InstructionSelector::VisitStore(Node* node) { |
if (g.CanBeImmediate(index, kLoadStoreImm)) { |
Emit(opcode | AddressingModeField::encode(kMode_MRI), NULL, |
g.UseRegister(base), g.UseImmediate(index), val); |
- } else if (g.CanBeImmediate(index, kLoadStoreImm)) { |
+ } else if (g.CanBeImmediate(base, kLoadStoreImm)) { |
Emit(opcode | AddressingModeField::encode(kMode_MRI), NULL, |
g.UseRegister(index), g.UseImmediate(base), val); |
} else { |