Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 7fd67e6d1c4610ed66e32063428b1a881af3f8b2..7f4cd73f32c3c59f4e84723d143354101b52cf6a 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -2017,6 +2017,18 @@ void InstructionSelector::VisitReturn(Node* ret) { |
} |
} |
+Instruction* InstructionSelector::EmitDeoptimize(InstructionCode opcode, |
+ InstructionOperand output, |
+ InstructionOperand a, |
+ DeoptimizeReason reason, |
+ Node* frame_state) { |
+ size_t output_count = output.IsInvalid() ? 0 : 1; |
+ InstructionOperand inputs[] = {a}; |
+ size_t input_count = arraysize(inputs); |
+ return EmitDeoptimize(opcode, output_count, &output, input_count, inputs, |
+ reason, frame_state); |
+} |
+ |
Instruction* InstructionSelector::EmitDeoptimize( |
InstructionCode opcode, InstructionOperand output, InstructionOperand a, |
InstructionOperand b, DeoptimizeReason reason, Node* frame_state) { |