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