Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: src/compiler/ast-graph-builder.h

Issue 697473006: Properly handle stack overflows in the AST graph builder. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Harden test case. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const; 152 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const;
153 153
154 // Process arguments to a call by popping {arity} elements off the operand 154 // Process arguments to a call by popping {arity} elements off the operand
155 // stack and build a call node using the given call operator. 155 // stack and build a call node using the given call operator.
156 Node* ProcessArguments(const Operator* op, int arity); 156 Node* ProcessArguments(const Operator* op, int arity);
157 157
158 // Visit statements. 158 // Visit statements.
159 void VisitIfNotNull(Statement* stmt); 159 void VisitIfNotNull(Statement* stmt);
160 160
161 // Visit expressions. 161 // Visit expressions.
162 void Visit(Expression* expr);
162 void VisitForTest(Expression* expr); 163 void VisitForTest(Expression* expr);
163 void VisitForEffect(Expression* expr); 164 void VisitForEffect(Expression* expr);
164 void VisitForValue(Expression* expr); 165 void VisitForValue(Expression* expr);
165 void VisitForValueOrNull(Expression* expr); 166 void VisitForValueOrNull(Expression* expr);
166 void VisitForValues(ZoneList<Expression*>* exprs); 167 void VisitForValues(ZoneList<Expression*>* exprs);
167 168
168 // Common for all IterationStatement bodies. 169 // Common for all IterationStatement bodies.
169 void VisitIterationBody(IterationStatement* stmt, LoopBuilder* loop, int); 170 void VisitIterationBody(IterationStatement* stmt, LoopBuilder* loop, int);
170 171
171 // Dispatched from VisitCallRuntime. 172 // Dispatched from VisitCallRuntime.
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 438
438 Scope* AstGraphBuilder::current_scope() const { 439 Scope* AstGraphBuilder::current_scope() const {
439 return execution_context_->scope(); 440 return execution_context_->scope();
440 } 441 }
441 442
442 } // namespace compiler 443 } // namespace compiler
443 } // namespace internal 444 } // namespace internal
444 } // namespace v8 445 } // namespace v8
445 446
446 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 447 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698