| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 StrictMode strict_mode() { return info()->strict_mode(); } | 133 StrictMode strict_mode() { return info()->strict_mode(); } |
| 134 JSGraph* jsgraph() { return jsgraph_; } | 134 JSGraph* jsgraph() { return jsgraph_; } |
| 135 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } | 135 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } |
| 136 ZoneList<Handle<Object> >* globals() { return &globals_; } | 136 ZoneList<Handle<Object> >* globals() { return &globals_; } |
| 137 | 137 |
| 138 // Current scope during visitation. | 138 // Current scope during visitation. |
| 139 inline Scope* current_scope() const; | 139 inline Scope* current_scope() const; |
| 140 | 140 |
| 141 // Process arguments to a call by popping {arity} elements off the operand | 141 // Process arguments to a call by popping {arity} elements off the operand |
| 142 // stack and build a call node using the given call operator. | 142 // stack and build a call node using the given call operator. |
| 143 Node* ProcessArguments(Operator* op, int arity); | 143 Node* ProcessArguments(const Operator* op, int arity); |
| 144 | 144 |
| 145 // Visit statements. | 145 // Visit statements. |
| 146 void VisitIfNotNull(Statement* stmt); | 146 void VisitIfNotNull(Statement* stmt); |
| 147 | 147 |
| 148 // Visit expressions. | 148 // Visit expressions. |
| 149 void VisitForTest(Expression* expr); | 149 void VisitForTest(Expression* expr); |
| 150 void VisitForEffect(Expression* expr); | 150 void VisitForEffect(Expression* expr); |
| 151 void VisitForValue(Expression* expr); | 151 void VisitForValue(Expression* expr); |
| 152 void VisitForValueOrNull(Expression* expr); | 152 void VisitForValueOrNull(Expression* expr); |
| 153 void VisitForValues(ZoneList<Expression*>* exprs); | 153 void VisitForValues(ZoneList<Expression*>* exprs); |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 }; | 421 }; |
| 422 | 422 |
| 423 Scope* AstGraphBuilder::current_scope() const { | 423 Scope* AstGraphBuilder::current_scope() const { |
| 424 return execution_context_->scope(); | 424 return execution_context_->scope(); |
| 425 } | 425 } |
| 426 } | 426 } |
| 427 } | 427 } |
| 428 } // namespace v8::internal::compiler | 428 } // namespace v8::internal::compiler |
| 429 | 429 |
| 430 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 430 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |