Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 9a99909f0952c2b9aa3ce10006f4cffb51314f4b..2b5f490fa6f28d85f48ad14a163eb316ba93ca13 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -2529,6 +2529,9 @@ void AstGraphBuilder::VisitCallRuntime(CallRuntime* expr) { |
// Create node to perform the runtime call. |
Runtime::FunctionId functionId = function->function_id; |
+ // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. |
+ if (functionId == Runtime::kInlineGeneratorNext) SetStackOverflow(); |
+ if (functionId == Runtime::kInlineGeneratorThrow) SetStackOverflow(); |
const Operator* call = javascript()->CallRuntime(functionId, args->length()); |
Node* value = ProcessArguments(call, args->length()); |
PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |