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