Index: src/compiler/js-inlining.cc |
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc |
index a5e98464798689a1314ffde66ea6c33a99668ae7..72f12fc7e0144993d0055e621f9f3b1badfe26d2 100644 |
--- a/src/compiler/js-inlining.cc |
+++ b/src/compiler/js-inlining.cc |
@@ -175,8 +175,14 @@ Reduction JSInliner::InlineCall(Node* call, Node* start, Node* end) { |
effects.push_back(NodeProperties::GetEffectInput(input)); |
controls.push_back(NodeProperties::GetControlInput(input)); |
break; |
+ case IrOpcode::kDeoptimize: |
+ case IrOpcode::kTerminate: |
+ case IrOpcode::kThrow: |
+ jsgraph_->graph()->end()->AppendInput(jsgraph_->zone(), input); |
+ jsgraph_->graph()->end()->set_op( |
+ jsgraph_->common()->End(jsgraph_->graph()->end()->InputCount())); |
+ break; |
default: |
- // TODO(turbofan): Handle Throw, Terminate and Deoptimize here. |
UNREACHABLE(); |
break; |
} |