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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 // =========================================================================== | 243 // =========================================================================== |
244 // The following build methods all generate graph fragments and return one | 244 // The following build methods all generate graph fragments and return one |
245 // resulting node. The operand stack height remains the same, variables and | 245 // resulting node. The operand stack height remains the same, variables and |
246 // other dependencies tracked by the environment might be mutated though. | 246 // other dependencies tracked by the environment might be mutated though. |
247 | 247 |
248 // Builder to create a receiver check for sloppy mode. | 248 // Builder to create a receiver check for sloppy mode. |
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* BuildLocalActivationContext(Node* context); |
| 253 Node* BuildLocalFunctionContext(Scope* scope); |
253 Node* BuildLocalScriptContext(Scope* scope); | 254 Node* BuildLocalScriptContext(Scope* scope); |
254 Node* BuildLocalBlockContext(Scope* scope); | 255 Node* BuildLocalBlockContext(Scope* scope); |
255 | 256 |
256 // Builder to create an arguments object if it is used. | 257 // Builder to create an arguments object if it is used. |
257 Node* BuildArgumentsObject(Variable* arguments); | 258 Node* BuildArgumentsObject(Variable* arguments); |
258 | 259 |
259 // Builder that assigns to the {.this_function} internal variable if needed. | 260 // Builder that assigns to the {.this_function} internal variable if needed. |
260 Node* BuildThisFunctionVariable(Variable* this_function_var); | 261 Node* BuildThisFunctionVariable(Variable* this_function_var); |
261 | 262 |
262 // Builder that assigns to the {new.target} internal variable if needed. | 263 // Builder that assigns to the {new.target} internal variable if needed. |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 557 |
557 // Prepare environment to be used as loop header. | 558 // Prepare environment to be used as loop header. |
558 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 559 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
559 }; | 560 }; |
560 | 561 |
561 } // namespace compiler | 562 } // namespace compiler |
562 } // namespace internal | 563 } // namespace internal |
563 } // namespace v8 | 564 } // namespace v8 |
564 | 565 |
565 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 566 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |