| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // If so, record the stack height into the compilation and return {true}. | 226 // If so, record the stack height into the compilation and return {true}. |
| 227 bool CheckOsrEntry(IterationStatement* stmt); | 227 bool CheckOsrEntry(IterationStatement* stmt); |
| 228 | 228 |
| 229 // Computes local variable liveness and replaces dead variables in | 229 // Computes local variable liveness and replaces dead variables in |
| 230 // frame states with the undefined values. | 230 // frame states with the undefined values. |
| 231 void ClearNonLiveSlotsInFrameStates(); | 231 void ClearNonLiveSlotsInFrameStates(); |
| 232 | 232 |
| 233 Node** EnsureInputBufferSize(int size); | 233 Node** EnsureInputBufferSize(int size); |
| 234 | 234 |
| 235 // Named and keyed loads require a VectorSlotPair for successful lowering. | 235 // Named and keyed loads require a VectorSlotPair for successful lowering. |
| 236 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const; | 236 VectorSlotPair CreateVectorSlotPair(FeedbackVectorSlot slot) const; |
| 237 | 237 |
| 238 // Determine which contexts need to be checked for extension objects that | 238 // Determine which contexts need to be checked for extension objects that |
| 239 // might shadow the optimistic declaration of dynamic lookup variables. | 239 // might shadow the optimistic declaration of dynamic lookup variables. |
| 240 uint32_t ComputeBitsetForDynamicGlobal(Variable* variable); | 240 uint32_t ComputeBitsetForDynamicGlobal(Variable* variable); |
| 241 uint32_t ComputeBitsetForDynamicContext(Variable* variable); | 241 uint32_t ComputeBitsetForDynamicContext(Variable* variable); |
| 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. |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 | 556 |
| 557 // Prepare environment to be used as loop header. | 557 // Prepare environment to be used as loop header. |
| 558 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 558 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
| 559 }; | 559 }; |
| 560 | 560 |
| 561 } // namespace compiler | 561 } // namespace compiler |
| 562 } // namespace internal | 562 } // namespace internal |
| 563 } // namespace v8 | 563 } // namespace v8 |
| 564 | 564 |
| 565 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 565 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |