Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 50216a766c074ec10c30872e6cf9f842288101ac..bf2286b9496871496d7831a11ecfd2967b23b3c8 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -2225,6 +2225,20 @@ void AstGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
} |
+void AstGraphBuilder::VisitSpreadOperation(SpreadOperation* expr) { |
+ LoopBuilder for_loop(this); |
+ VisitForEffect(expr->assign_iterator()); |
+ for_loop.BeginLoop(NULL, false); |
+ VisitForEffect(expr->next_result()); |
+ VisitForTest(expr->result_done()); |
+ Node* condition = environment()->Pop(); |
+ for_loop.BreakWhen(condition); |
+ VisitForValue(expr->result_value()); |
+ for_loop.EndBody(); |
+ for_loop.EndLoop(); |
+} |
+ |
+ |
void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
Node* value = GetFunctionClosure(); |
ast_context()->ProduceValue(value); |