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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 Node* NewNode(const Operator* op, int value_input_count, Node** value_inputs, | 196 Node* NewNode(const Operator* op, int value_input_count, Node** value_inputs, |
197 bool incomplete = false) { | 197 bool incomplete = false) { |
198 return MakeNode(op, value_input_count, value_inputs, incomplete); | 198 return MakeNode(op, value_input_count, value_inputs, incomplete); |
199 } | 199 } |
200 | 200 |
201 // Creates a new Phi node having {count} input values. | 201 // Creates a new Phi node having {count} input values. |
202 Node* NewPhi(int count, Node* input, Node* control); | 202 Node* NewPhi(int count, Node* input, Node* control); |
203 Node* NewEffectPhi(int count, Node* input, Node* control); | 203 Node* NewEffectPhi(int count, Node* input, Node* control); |
204 | 204 |
205 Node* NewOuterContextParam(); | 205 Node* NewOuterContextParam(); |
206 Node* NewCurrentContextOsrValue(); | |
207 | 206 |
208 // Helpers for merging control, effect or value dependencies. | 207 // Helpers for merging control, effect or value dependencies. |
209 Node* MergeControl(Node* control, Node* other); | 208 Node* MergeControl(Node* control, Node* other); |
210 Node* MergeEffect(Node* value, Node* other, Node* control); | 209 Node* MergeEffect(Node* value, Node* other, Node* control); |
211 Node* MergeValue(Node* value, Node* other, Node* control); | 210 Node* MergeValue(Node* value, Node* other, Node* control); |
212 | 211 |
213 // The main node creation chokepoint. Adds context, frame state, effect, | 212 // The main node creation chokepoint. Adds context, frame state, effect, |
214 // and control dependencies depending on the operator. | 213 // and control dependencies depending on the operator. |
215 Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs, | 214 Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs, |
216 bool incomplete); | 215 bool incomplete); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 547 |
549 // Prepare environment to be used as loop header. | 548 // Prepare environment to be used as loop header. |
550 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 549 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
551 }; | 550 }; |
552 | 551 |
553 } // namespace compiler | 552 } // namespace compiler |
554 } // namespace internal | 553 } // namespace internal |
555 } // namespace v8 | 554 } // namespace v8 |
556 | 555 |
557 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 556 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |