| OLD | NEW |
| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); | 98 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); |
| 99 | 99 |
| 100 // Builders for dynamic hole-checks at runtime. | 100 // Builders for dynamic hole-checks at runtime. |
| 101 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); | 101 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); |
| 102 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, | 102 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, |
| 103 BailoutId bailout_id); | 103 BailoutId bailout_id); |
| 104 | 104 |
| 105 // Builders for binary operations. | 105 // Builders for binary operations. |
| 106 Node* BuildBinaryOp(Node* left, Node* right, Token::Value op); | 106 Node* BuildBinaryOp(Node* left, Node* right, Token::Value op); |
| 107 | 107 |
| 108 // Builder for stack-check guards. |
| 109 Node* BuildStackCheck(); |
| 110 |
| 108 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 111 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
| 109 // Visiting functions for AST nodes make this an AstVisitor. | 112 // Visiting functions for AST nodes make this an AstVisitor. |
| 110 AST_NODE_LIST(DECLARE_VISIT) | 113 AST_NODE_LIST(DECLARE_VISIT) |
| 111 #undef DECLARE_VISIT | 114 #undef DECLARE_VISIT |
| 112 | 115 |
| 113 // Visiting function for declarations list is overridden. | 116 // Visiting function for declarations list is overridden. |
| 114 virtual void VisitDeclarations(ZoneList<Declaration*>* declarations); | 117 virtual void VisitDeclarations(ZoneList<Declaration*>* declarations); |
| 115 | 118 |
| 116 private: | 119 private: |
| 117 CompilationInfo* info_; | 120 CompilationInfo* info_; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 }; | 428 }; |
| 426 | 429 |
| 427 Scope* AstGraphBuilder::current_scope() const { | 430 Scope* AstGraphBuilder::current_scope() const { |
| 428 return execution_context_->scope(); | 431 return execution_context_->scope(); |
| 429 } | 432 } |
| 430 } | 433 } |
| 431 } | 434 } |
| 432 } // namespace v8::internal::compiler | 435 } // namespace v8::internal::compiler |
| 433 | 436 |
| 434 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 437 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |