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