| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // Determine which contexts need to be checked for extension objects that | 235 // Determine which contexts need to be checked for extension objects that |
| 236 // might shadow the optimistic declaration of dynamic lookup variables. | 236 // might shadow the optimistic declaration of dynamic lookup variables. |
| 237 uint32_t ComputeBitsetForDynamicGlobal(Variable* variable); | 237 uint32_t ComputeBitsetForDynamicGlobal(Variable* variable); |
| 238 uint32_t ComputeBitsetForDynamicContext(Variable* variable); | 238 uint32_t ComputeBitsetForDynamicContext(Variable* variable); |
| 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. | |
| 246 Node* BuildPatchReceiverToGlobalProxy(Node* receiver); | |
| 247 | |
| 248 // Builders to create local function, script and block contexts. | 245 // Builders to create local function, script and block contexts. |
| 249 Node* BuildLocalActivationContext(Node* context); | 246 Node* BuildLocalActivationContext(Node* context); |
| 250 Node* BuildLocalFunctionContext(Scope* scope); | 247 Node* BuildLocalFunctionContext(Scope* scope); |
| 251 Node* BuildLocalScriptContext(Scope* scope); | 248 Node* BuildLocalScriptContext(Scope* scope); |
| 252 Node* BuildLocalBlockContext(Scope* scope); | 249 Node* BuildLocalBlockContext(Scope* scope); |
| 253 | 250 |
| 254 // Builder to create an arguments object if it is used. | 251 // Builder to create an arguments object if it is used. |
| 255 Node* BuildArgumentsObject(Variable* arguments); | 252 Node* BuildArgumentsObject(Variable* arguments); |
| 256 | 253 |
| 257 // Builder that assigns to the {.this_function} internal variable if needed. | 254 // Builder that assigns to the {.this_function} internal variable if needed. |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 | 572 |
| 576 // Prepare environment to be used as loop header. | 573 // Prepare environment to be used as loop header. |
| 577 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 574 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
| 578 }; | 575 }; |
| 579 | 576 |
| 580 } // namespace compiler | 577 } // namespace compiler |
| 581 } // namespace internal | 578 } // namespace internal |
| 582 } // namespace v8 | 579 } // namespace v8 |
| 583 | 580 |
| 584 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 581 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |