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/typing.h" | 5 #include "src/typing.h" |
6 | 6 |
7 #include "src/frames.h" | 7 #include "src/frames.h" |
8 #include "src/frames-inl.h" | 8 #include "src/frames-inl.h" |
9 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move | 10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 RECURSE(Visit(expr->right())); | 716 RECURSE(Visit(expr->right())); |
717 | 717 |
718 NarrowType(expr, Bounds(Type::Boolean(zone()))); | 718 NarrowType(expr, Bounds(Type::Boolean(zone()))); |
719 } | 719 } |
720 | 720 |
721 | 721 |
722 void AstTyper::VisitThisFunction(ThisFunction* expr) { | 722 void AstTyper::VisitThisFunction(ThisFunction* expr) { |
723 } | 723 } |
724 | 724 |
725 | 725 |
| 726 void AstTyper::VisitSuperReference(SuperReference* expr) {} |
| 727 |
| 728 |
726 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { | 729 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { |
727 for (int i = 0; i < decls->length(); ++i) { | 730 for (int i = 0; i < decls->length(); ++i) { |
728 Declaration* decl = decls->at(i); | 731 Declaration* decl = decls->at(i); |
729 RECURSE(Visit(decl)); | 732 RECURSE(Visit(decl)); |
730 } | 733 } |
731 } | 734 } |
732 | 735 |
733 | 736 |
734 void AstTyper::VisitVariableDeclaration(VariableDeclaration* declaration) { | 737 void AstTyper::VisitVariableDeclaration(VariableDeclaration* declaration) { |
735 } | 738 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 void AstTyper::VisitModuleUrl(ModuleUrl* module) { | 774 void AstTyper::VisitModuleUrl(ModuleUrl* module) { |
772 } | 775 } |
773 | 776 |
774 | 777 |
775 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { | 778 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { |
776 RECURSE(Visit(stmt->body())); | 779 RECURSE(Visit(stmt->body())); |
777 } | 780 } |
778 | 781 |
779 | 782 |
780 } } // namespace v8::internal | 783 } } // namespace v8::internal |
OLD | NEW |