OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/crankshaft/typing.h" | 5 #include "src/crankshaft/typing.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/frames.h" | 8 #include "src/frames.h" |
9 #include "src/frames-inl.h" | 9 #include "src/frames-inl.h" |
10 #include "src/ostreams.h" | 10 #include "src/ostreams.h" |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 void AstTyper::VisitThisFunction(ThisFunction* expr) { | 763 void AstTyper::VisitThisFunction(ThisFunction* expr) { |
764 } | 764 } |
765 | 765 |
766 | 766 |
767 void AstTyper::VisitSuperPropertyReference(SuperPropertyReference* expr) {} | 767 void AstTyper::VisitSuperPropertyReference(SuperPropertyReference* expr) {} |
768 | 768 |
769 | 769 |
770 void AstTyper::VisitSuperCallReference(SuperCallReference* expr) {} | 770 void AstTyper::VisitSuperCallReference(SuperCallReference* expr) {} |
771 | 771 |
772 | 772 |
| 773 void AstTyper::VisitRewritableExpression(RewritableExpression* expr) { |
| 774 Visit(expr->expression()); |
| 775 } |
| 776 |
| 777 |
773 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { | 778 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { |
774 for (int i = 0; i < decls->length(); ++i) { | 779 for (int i = 0; i < decls->length(); ++i) { |
775 Declaration* decl = decls->at(i); | 780 Declaration* decl = decls->at(i); |
776 RECURSE(Visit(decl)); | 781 RECURSE(Visit(decl)); |
777 } | 782 } |
778 } | 783 } |
779 | 784 |
780 | 785 |
781 void AstTyper::VisitVariableDeclaration(VariableDeclaration* declaration) { | 786 void AstTyper::VisitVariableDeclaration(VariableDeclaration* declaration) { |
782 } | 787 } |
783 | 788 |
784 | 789 |
785 void AstTyper::VisitFunctionDeclaration(FunctionDeclaration* declaration) { | 790 void AstTyper::VisitFunctionDeclaration(FunctionDeclaration* declaration) { |
786 RECURSE(Visit(declaration->fun())); | 791 RECURSE(Visit(declaration->fun())); |
787 } | 792 } |
788 | 793 |
789 | 794 |
790 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { | 795 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { |
791 } | 796 } |
792 | 797 |
793 | 798 |
794 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { | 799 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { |
795 } | 800 } |
796 | 801 |
797 | 802 |
798 } // namespace internal | 803 } // namespace internal |
799 } // namespace v8 | 804 } // namespace v8 |
OLD | NEW |