| 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/ast.h" | 8 #include "src/ast/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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 | 444 |
| 445 // Dispatched from VisitForInStatement. | 445 // Dispatched from VisitForInStatement. |
| 446 void VisitForInAssignment(Expression* expr, Node* value, | 446 void VisitForInAssignment(Expression* expr, Node* value, |
| 447 const VectorSlotPair& feedback, | 447 const VectorSlotPair& feedback, |
| 448 BailoutId bailout_id); | 448 BailoutId bailout_id); |
| 449 | 449 |
| 450 // Dispatched from VisitObjectLiteral. | 450 // Dispatched from VisitObjectLiteral. |
| 451 void VisitObjectLiteralAccessor(Node* home_object, | 451 void VisitObjectLiteralAccessor(Node* home_object, |
| 452 ObjectLiteralProperty* property); | 452 ObjectLiteralProperty* property); |
| 453 | 453 |
| 454 // Dispatched from VisitClassLiteral. | |
| 455 void VisitClassLiteralContents(ClassLiteral* expr); | |
| 456 | |
| 457 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 454 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| 458 DISALLOW_COPY_AND_ASSIGN(AstGraphBuilder); | 455 DISALLOW_COPY_AND_ASSIGN(AstGraphBuilder); |
| 459 }; | 456 }; |
| 460 | 457 |
| 461 | 458 |
| 462 // The abstract execution environment for generated code consists of | 459 // The abstract execution environment for generated code consists of |
| 463 // parameter variables, local variables and the operand stack. The | 460 // parameter variables, local variables and the operand stack. The |
| 464 // environment will perform proper SSA-renaming of all tracked nodes | 461 // environment will perform proper SSA-renaming of all tracked nodes |
| 465 // at split and merge points in the control flow. Internally all the | 462 // at split and merge points in the control flow. Internally all the |
| 466 // values are stored in one list using the following layout: | 463 // values are stored in one list using the following layout: |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 598 |
| 602 // Prepare environment to be used as loop header. | 599 // Prepare environment to be used as loop header. |
| 603 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 600 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
| 604 }; | 601 }; |
| 605 | 602 |
| 606 } // namespace compiler | 603 } // namespace compiler |
| 607 } // namespace internal | 604 } // namespace internal |
| 608 } // namespace v8 | 605 } // namespace v8 |
| 609 | 606 |
| 610 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 607 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |