Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index ca6fccd01039f5c5f2d0f2c8029e50d097eed9a2..592518136cadaf8a6fdb8d1da510db69b48e8c2f 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -2569,22 +2569,12 @@ void AstGraphBuilder::VisitCallRuntime(CallRuntime* expr) { |
return VisitCallJSRuntime(expr); |
} |
- const Runtime::Function* function = expr->function(); |
- |
- // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. |
- if (function->function_id == Runtime::kInlineGeneratorNext || |
- function->function_id == Runtime::kInlineGeneratorReturn || |
- function->function_id == Runtime::kInlineGeneratorThrow) { |
- ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); |
- return SetStackOverflow(); |
- } |
- |
// Evaluate all arguments to the runtime call. |
ZoneList<Expression*>* args = expr->arguments(); |
VisitForValues(args); |
// Create node to perform the runtime call. |
- Runtime::FunctionId functionId = function->function_id; |
+ Runtime::FunctionId functionId = expr->function()->function_id; |
const Operator* call = javascript()->CallRuntime(functionId, args->length()); |
FrameStateBeforeAndAfter states(this, expr->CallId()); |
Node* value = ProcessArguments(call, args->length()); |