Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index 747b47bf99eef518d224a08f2b631158cdb82665..ed387fb2d727d6f4c47b15f57680857589f6e405 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -498,7 +498,7 @@ 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); |
} |
@@ -1169,7 +1169,7 @@ void VisitCompareWithMemoryOperand(InstructionSelector* selector, |
selector->Emit(opcode, 0, nullptr, input_count, inputs); |
} else if (cont->IsDeoptimize()) { |
selector->EmitDeoptimize(opcode, 0, nullptr, input_count, inputs, |
- cont->frame_state()); |
+ cont->reason(), cont->frame_state()); |
} else { |
DCHECK(cont->IsSet()); |
InstructionOperand output = g.DefineAsRegister(cont->result()); |
@@ -1187,7 +1187,7 @@ 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()); |
@@ -1326,7 +1326,7 @@ void VisitWordCompare(InstructionSelector* selector, Node* node, |
selector->Emit(opcode, g.NoOutput(), g.Label(cont->true_block()), |
g.Label(cont->false_block())); |
} else if (cont->IsDeoptimize()) { |
- selector->EmitDeoptimize(opcode, 0, nullptr, 0, nullptr, |
+ selector->EmitDeoptimize(opcode, 0, nullptr, 0, nullptr, cont->reason(), |
cont->frame_state()); |
} else { |
DCHECK(cont->IsSet()); |
@@ -1440,14 +1440,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); |
} |