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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 Node* BuildPatchReceiverToGlobalProxy(Node* receiver); | 255 Node* BuildPatchReceiverToGlobalProxy(Node* receiver); |
256 | 256 |
257 // Builders to create local function, script and block contexts. | 257 // Builders to create local function, script and block contexts. |
258 Node* BuildLocalFunctionContext(Node* context); | 258 Node* BuildLocalFunctionContext(Node* context); |
259 Node* BuildLocalScriptContext(Scope* scope); | 259 Node* BuildLocalScriptContext(Scope* scope); |
260 Node* BuildLocalBlockContext(Scope* scope); | 260 Node* BuildLocalBlockContext(Scope* scope); |
261 | 261 |
262 // Builder to create an arguments object if it is used. | 262 // Builder to create an arguments object if it is used. |
263 Node* BuildArgumentsObject(Variable* arguments); | 263 Node* BuildArgumentsObject(Variable* arguments); |
264 | 264 |
265 // Builder to create an array of rest parameters if used | |
266 Node* BuildRestArgumentsArray(Variable* rest, int index); | |
267 | |
268 // Builder that assigns to the {.this_function} internal variable if needed. | 265 // Builder that assigns to the {.this_function} internal variable if needed. |
269 Node* BuildThisFunctionVariable(Variable* this_function_var); | 266 Node* BuildThisFunctionVariable(Variable* this_function_var); |
270 | 267 |
271 // Builder that assigns to the {new.target} internal variable if needed. | 268 // Builder that assigns to the {new.target} internal variable if needed. |
272 Node* BuildNewTargetVariable(Variable* new_target_var); | 269 Node* BuildNewTargetVariable(Variable* new_target_var); |
273 | 270 |
274 // Builders for variable load and assignment. | 271 // Builders for variable load and assignment. |
275 Node* BuildVariableAssignment(Variable* variable, Node* value, | 272 Node* BuildVariableAssignment(Variable* variable, Node* value, |
276 Token::Value op, const VectorSlotPair& slot, | 273 Token::Value op, const VectorSlotPair& slot, |
277 BailoutId bailout_id, | 274 BailoutId bailout_id, |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 | 557 |
561 // Prepare environment to be used as loop header. | 558 // Prepare environment to be used as loop header. |
562 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 559 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
563 }; | 560 }; |
564 | 561 |
565 } // namespace compiler | 562 } // namespace compiler |
566 } // namespace internal | 563 } // namespace internal |
567 } // namespace v8 | 564 } // namespace v8 |
568 | 565 |
569 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 566 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |