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/ast.h" | 8 #include "src/ast.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/liveness-analyzer.h" | 10 #include "src/compiler/liveness-analyzer.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // new nodes. | 122 // new nodes. |
123 static const int kInputBufferSizeIncrement = 64; | 123 static const int kInputBufferSizeIncrement = 64; |
124 | 124 |
125 Zone* local_zone() const { return local_zone_; } | 125 Zone* local_zone() const { return local_zone_; } |
126 Environment* environment() const { return environment_; } | 126 Environment* environment() const { return environment_; } |
127 AstContext* ast_context() const { return ast_context_; } | 127 AstContext* ast_context() const { return ast_context_; } |
128 ControlScope* execution_control() const { return execution_control_; } | 128 ControlScope* execution_control() const { return execution_control_; } |
129 ContextScope* execution_context() const { return execution_context_; } | 129 ContextScope* execution_context() const { return execution_context_; } |
130 CommonOperatorBuilder* common() const { return jsgraph_->common(); } | 130 CommonOperatorBuilder* common() const { return jsgraph_->common(); } |
131 CompilationInfo* info() const { return info_; } | 131 CompilationInfo* info() const { return info_; } |
| 132 Isolate* isolate() const; |
132 LanguageMode language_mode() const; | 133 LanguageMode language_mode() const; |
133 JSGraph* jsgraph() { return jsgraph_; } | 134 JSGraph* jsgraph() { return jsgraph_; } |
134 Graph* graph() { return jsgraph_->graph(); } | 135 Graph* graph() { return jsgraph_->graph(); } |
135 Zone* graph_zone() { return graph()->zone(); } | 136 Zone* graph_zone() { return graph()->zone(); } |
136 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } | 137 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } |
137 ZoneVector<Handle<Object>>* globals() { return &globals_; } | 138 ZoneVector<Handle<Object>>* globals() { return &globals_; } |
138 Scope* current_scope() const; | 139 Scope* current_scope() const; |
139 Node* current_context() const; | 140 Node* current_context() const; |
140 LivenessAnalyzer* liveness_analyzer() { return &liveness_analyzer_; } | 141 LivenessAnalyzer* liveness_analyzer() { return &liveness_analyzer_; } |
141 const FrameStateFunctionInfo* frame_state_function_info() const { | 142 const FrameStateFunctionInfo* frame_state_function_info() const { |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 559 |
559 // Prepare environment to be used as loop header. | 560 // Prepare environment to be used as loop header. |
560 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 561 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
561 }; | 562 }; |
562 | 563 |
563 } // namespace compiler | 564 } // namespace compiler |
564 } // namespace internal | 565 } // namespace internal |
565 } // namespace v8 | 566 } // namespace v8 |
566 | 567 |
567 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 568 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |