Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index f8ecf90203c47343b42897b1cb8ffa5ff615bdcd..be0a234874a1aa2b23f09b909623a3748bc302db 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -124,7 +124,7 @@ static void VisitBinop(InstructionSelector* selector, Node* node, |
opcode = cont->Encode(opcode); |
if (cont->IsDeoptimize()) { |
selector->EmitDeoptimize(opcode, output_count, outputs, input_count, inputs, |
- cont->frame_state()); |
+ cont->reason(), cont->frame_state()); |
} else { |
selector->Emit(opcode, output_count, outputs, input_count, inputs); |
} |
@@ -1100,7 +1100,7 @@ static void VisitCompare(InstructionSelector* selector, InstructionCode opcode, |
selector->Emit(opcode, g.NoOutput(), left, right, |
g.Label(cont->true_block()), g.Label(cont->false_block())); |
} else if (cont->IsDeoptimize()) { |
- selector->EmitDeoptimize(opcode, g.NoOutput(), left, right, |
+ selector->EmitDeoptimize(opcode, g.NoOutput(), left, right, cont->reason(), |
cont->frame_state()); |
} else { |
DCHECK(cont->IsSet()); |
@@ -1300,7 +1300,8 @@ void VisitWordCompareZero(InstructionSelector* selector, Node* user, |
g.Label(cont->true_block()), g.Label(cont->false_block())); |
} else if (cont->IsDeoptimize()) { |
selector->EmitDeoptimize(opcode, g.NoOutput(), value_operand, |
- g.TempImmediate(0), cont->frame_state()); |
+ g.TempImmediate(0), cont->reason(), |
+ cont->frame_state()); |
} else { |
DCHECK(cont->IsSet()); |
selector->Emit(opcode, g.DefineAsRegister(cont->result()), value_operand, |
@@ -1317,14 +1318,14 @@ void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, |
} |
void InstructionSelector::VisitDeoptimizeIf(Node* node) { |
- FlagsContinuation cont = |
- FlagsContinuation::ForDeoptimize(kNotEqual, node->InputAt(1)); |
+ FlagsContinuation cont = FlagsContinuation::ForDeoptimize( |
+ kNotEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); |
VisitWordCompareZero(this, node, node->InputAt(0), &cont); |
} |
void InstructionSelector::VisitDeoptimizeUnless(Node* node) { |
- FlagsContinuation cont = |
- FlagsContinuation::ForDeoptimize(kEqual, node->InputAt(1)); |
+ FlagsContinuation cont = FlagsContinuation::ForDeoptimize( |
+ kEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); |
VisitWordCompareZero(this, node, node->InputAt(0), &cont); |
} |