| 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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 NarrowLowerType(expr->right(), right_type); | 762 NarrowLowerType(expr->right(), right_type); |
| 763 expr->set_combined_type(combined_type); | 763 expr->set_combined_type(combined_type); |
| 764 | 764 |
| 765 RECURSE(Visit(expr->left())); | 765 RECURSE(Visit(expr->left())); |
| 766 RECURSE(Visit(expr->right())); | 766 RECURSE(Visit(expr->right())); |
| 767 | 767 |
| 768 NarrowType(expr, Bounds(Type::Boolean(zone()))); | 768 NarrowType(expr, Bounds(Type::Boolean(zone()))); |
| 769 } | 769 } |
| 770 | 770 |
| 771 | 771 |
| 772 void AstTyper::VisitSpread(Spread* expr) { |
| 773 UNREACHABLE(); |
| 774 } |
| 775 |
| 776 |
| 772 void AstTyper::VisitThisFunction(ThisFunction* expr) { | 777 void AstTyper::VisitThisFunction(ThisFunction* expr) { |
| 773 } | 778 } |
| 774 | 779 |
| 775 | 780 |
| 776 void AstTyper::VisitSuperReference(SuperReference* expr) {} | 781 void AstTyper::VisitSuperReference(SuperReference* expr) {} |
| 777 | 782 |
| 778 | 783 |
| 779 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { | 784 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { |
| 780 for (int i = 0; i < decls->length(); ++i) { | 785 for (int i = 0; i < decls->length(); ++i) { |
| 781 Declaration* decl = decls->at(i); | 786 Declaration* decl = decls->at(i); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 void AstTyper::VisitModuleUrl(ModuleUrl* module) { | 824 void AstTyper::VisitModuleUrl(ModuleUrl* module) { |
| 820 } | 825 } |
| 821 | 826 |
| 822 | 827 |
| 823 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { | 828 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { |
| 824 RECURSE(Visit(stmt->body())); | 829 RECURSE(Visit(stmt->body())); |
| 825 } | 830 } |
| 826 | 831 |
| 827 | 832 |
| 828 } } // namespace v8::internal | 833 } } // namespace v8::internal |
| OLD | NEW |