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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const; | 238 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const; |
239 | 239 |
240 // =========================================================================== | 240 // =========================================================================== |
241 // The following build methods all generate graph fragments and return one | 241 // The following build methods all generate graph fragments and return one |
242 // resulting node. The operand stack height remains the same, variables and | 242 // resulting node. The operand stack height remains the same, variables and |
243 // other dependencies tracked by the environment might be mutated though. | 243 // other dependencies tracked by the environment might be mutated though. |
244 | 244 |
245 // Builder to create a receiver check for sloppy mode. | 245 // Builder to create a receiver check for sloppy mode. |
246 Node* BuildPatchReceiverToGlobalProxy(Node* receiver); | 246 Node* BuildPatchReceiverToGlobalProxy(Node* receiver); |
247 | 247 |
248 // Builders to create local function and block contexts. | 248 // Builders to create local function, script and block contexts. |
249 Node* BuildLocalFunctionContext(Node* context, Node* closure); | 249 Node* BuildLocalFunctionContext(Node* context); |
| 250 Node* BuildLocalScriptContext(Scope* scope); |
250 Node* BuildLocalBlockContext(Scope* scope); | 251 Node* BuildLocalBlockContext(Scope* scope); |
251 | 252 |
252 // Builder to create an arguments object if it is used. | 253 // Builder to create an arguments object if it is used. |
253 Node* BuildArgumentsObject(Variable* arguments); | 254 Node* BuildArgumentsObject(Variable* arguments); |
254 | 255 |
255 // Builder to create an array of rest parameters if used | 256 // Builder to create an array of rest parameters if used |
256 Node* BuildRestArgumentsArray(Variable* rest, int index); | 257 Node* BuildRestArgumentsArray(Variable* rest, int index); |
257 | 258 |
258 // Builders for variable load and assignment. | 259 // Builders for variable load and assignment. |
259 Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op, | 260 Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op, |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 512 |
512 // Prepare environment to be used as loop header. | 513 // Prepare environment to be used as loop header. |
513 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 514 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
514 }; | 515 }; |
515 | 516 |
516 } // namespace compiler | 517 } // namespace compiler |
517 } // namespace internal | 518 } // namespace internal |
518 } // namespace v8 | 519 } // namespace v8 |
519 | 520 |
520 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 521 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |