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/ast.h" | 8 #include "src/ast/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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 271 |
272 // Builders to create local function, script and block contexts. | 272 // Builders to create local function, script and block contexts. |
273 Node* BuildLocalActivationContext(Node* context); | 273 Node* BuildLocalActivationContext(Node* context); |
274 Node* BuildLocalFunctionContext(Scope* scope); | 274 Node* BuildLocalFunctionContext(Scope* scope); |
275 Node* BuildLocalScriptContext(Scope* scope); | 275 Node* BuildLocalScriptContext(Scope* scope); |
276 Node* BuildLocalBlockContext(Scope* scope); | 276 Node* BuildLocalBlockContext(Scope* scope); |
277 | 277 |
278 // Builder to create an arguments object if it is used. | 278 // Builder to create an arguments object if it is used. |
279 Node* BuildArgumentsObject(Variable* arguments); | 279 Node* BuildArgumentsObject(Variable* arguments); |
280 | 280 |
281 // Builder to create an array of rest parameters if used | 281 // Builder to create an array of rest parameters if used. |
282 Node* BuildRestArgumentsArray(Variable* rest, int index); | 282 Node* BuildRestArgumentsArray(Variable* rest); |
283 | 283 |
284 // Builder that assigns to the {.this_function} internal variable if needed. | 284 // Builder that assigns to the {.this_function} internal variable if needed. |
285 Node* BuildThisFunctionVariable(Variable* this_function_var); | 285 Node* BuildThisFunctionVariable(Variable* this_function_var); |
286 | 286 |
287 // Builder that assigns to the {new.target} internal variable if needed. | 287 // Builder that assigns to the {new.target} internal variable if needed. |
288 Node* BuildNewTargetVariable(Variable* new_target_var); | 288 Node* BuildNewTargetVariable(Variable* new_target_var); |
289 | 289 |
290 // Builders for variable load and assignment. | 290 // Builders for variable load and assignment. |
291 Node* BuildVariableAssignment(Variable* variable, Node* value, | 291 Node* BuildVariableAssignment(Variable* variable, Node* value, |
292 Token::Value op, const VectorSlotPair& slot, | 292 Token::Value op, const VectorSlotPair& slot, |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 | 605 |
606 // Prepare environment to be used as loop header. | 606 // Prepare environment to be used as loop header. |
607 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 607 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
608 }; | 608 }; |
609 | 609 |
610 } // namespace compiler | 610 } // namespace compiler |
611 } // namespace internal | 611 } // namespace internal |
612 } // namespace v8 | 612 } // namespace v8 |
613 | 613 |
614 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 614 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |