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