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 855bc11d8dd62e71fabcbdc380ea77de2b82618b..696e55c4178c7312799fa581addb27d108b18f2f 100644 |
--- a/src/compiler/arm64/instruction-selector-arm64.cc |
+++ b/src/compiler/arm64/instruction-selector-arm64.cc |
@@ -409,7 +409,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); |
} |
@@ -1288,7 +1288,8 @@ void EmitInt32MulWithOverflow(InstructionSelector* selector, Node* node, |
g.Label(cont->true_block()), g.Label(cont->false_block())); |
} else if (cont->IsDeoptimize()) { |
InstructionOperand in[] = {result, result}; |
- selector->EmitDeoptimize(opcode, 0, nullptr, 2, in, cont->frame_state()); |
+ selector->EmitDeoptimize(opcode, 0, nullptr, 2, in, cont->reason(), |
+ cont->frame_state()); |
} else { |
DCHECK(cont->IsSet()); |
selector->Emit(opcode, g.DefineAsRegister(cont->result()), result, result); |
@@ -1915,7 +1916,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()); |
@@ -2328,7 +2329,7 @@ void VisitWordCompareZero(InstructionSelector* selector, Node* user, |
DCHECK(cont->IsDeoptimize()); |
selector->EmitDeoptimize(cont->Encode(kArm64Tst32), g.NoOutput(), |
g.UseRegister(value), g.UseRegister(value), |
- cont->frame_state()); |
+ cont->reason(), cont->frame_state()); |
} |
} |
@@ -2341,14 +2342,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); |
} |