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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // new nodes. | 111 // new nodes. |
112 static const int kInputBufferSizeIncrement = 64; | 112 static const int kInputBufferSizeIncrement = 64; |
113 | 113 |
114 Zone* local_zone() const { return local_zone_; } | 114 Zone* local_zone() const { return local_zone_; } |
115 Environment* environment() { return environment_; } | 115 Environment* environment() { return environment_; } |
116 AstContext* ast_context() const { return ast_context_; } | 116 AstContext* ast_context() const { return ast_context_; } |
117 ControlScope* execution_control() const { return execution_control_; } | 117 ControlScope* execution_control() const { return execution_control_; } |
118 ContextScope* execution_context() const { return execution_context_; } | 118 ContextScope* execution_context() const { return execution_context_; } |
119 CommonOperatorBuilder* common() const { return jsgraph_->common(); } | 119 CommonOperatorBuilder* common() const { return jsgraph_->common(); } |
120 CompilationInfo* info() const { return info_; } | 120 CompilationInfo* info() const { return info_; } |
121 StrictMode strict_mode() const; | 121 LanguageMode language_mode() const; |
122 JSGraph* jsgraph() { return jsgraph_; } | 122 JSGraph* jsgraph() { return jsgraph_; } |
123 Graph* graph() { return jsgraph_->graph(); } | 123 Graph* graph() { return jsgraph_->graph(); } |
124 Zone* graph_zone() { return graph()->zone(); } | 124 Zone* graph_zone() { return graph()->zone(); } |
125 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } | 125 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } |
126 ZoneVector<Handle<Object>>* globals() { return &globals_; } | 126 ZoneVector<Handle<Object>>* globals() { return &globals_; } |
127 Scope* current_scope() const; | 127 Scope* current_scope() const; |
128 Node* current_context() const { return current_context_; } | 128 Node* current_context() const { return current_context_; } |
129 Node* dead_control(); | 129 Node* dead_control(); |
130 Node* exit_control() const { return exit_control_; } | 130 Node* exit_control() const { return exit_control_; } |
131 | 131 |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 455 |
456 // Prepare environment to be used as loop header. | 456 // Prepare environment to be used as loop header. |
457 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 457 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
458 }; | 458 }; |
459 | 459 |
460 } // namespace compiler | 460 } // namespace compiler |
461 } // namespace internal | 461 } // namespace internal |
462 } // namespace v8 | 462 } // namespace v8 |
463 | 463 |
464 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 464 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |