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 |
460 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 463 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
461 DISALLOW_COPY_AND_ASSIGN(AstGraphBuilder); | 464 DISALLOW_COPY_AND_ASSIGN(AstGraphBuilder); |
462 }; | 465 }; |
463 | 466 |
464 | 467 |
465 // The abstract execution environment for generated code consists of | 468 // The abstract execution environment for generated code consists of |
466 // parameter variables, local variables and the operand stack. The | 469 // parameter variables, local variables and the operand stack. The |
467 // environment will perform proper SSA-renaming of all tracked nodes | 470 // environment will perform proper SSA-renaming of all tracked nodes |
468 // at split and merge points in the control flow. Internally all the | 471 // at split and merge points in the control flow. Internally all the |
469 // values are stored in one list using the following layout: | 472 // values are stored in one list using the following layout: |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 | 611 |
609 // Prepare environment to be used as loop header. | 612 // Prepare environment to be used as loop header. |
610 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 613 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
611 }; | 614 }; |
612 | 615 |
613 } // namespace compiler | 616 } // namespace compiler |
614 } // namespace internal | 617 } // namespace internal |
615 } // namespace v8 | 618 } // namespace v8 |
616 | 619 |
617 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 620 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |