Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: src/typing.cc

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase + clang-format Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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) { UNREACHABLE(); }
773
774
772 void AstTyper::VisitThisFunction(ThisFunction* expr) { 775 void AstTyper::VisitThisFunction(ThisFunction* expr) {
773 } 776 }
774 777
775 778
776 void AstTyper::VisitSuperReference(SuperReference* expr) {} 779 void AstTyper::VisitSuperReference(SuperReference* expr) {}
777 780
778 781
779 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { 782 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) {
780 for (int i = 0; i < decls->length(); ++i) { 783 for (int i = 0; i < decls->length(); ++i) {
781 Declaration* decl = decls->at(i); 784 Declaration* decl = decls->at(i);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 void AstTyper::VisitModuleUrl(ModuleUrl* module) { 822 void AstTyper::VisitModuleUrl(ModuleUrl* module) {
820 } 823 }
821 824
822 825
823 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { 826 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) {
824 RECURSE(Visit(stmt->body())); 827 RECURSE(Visit(stmt->body()));
825 } 828 }
826 829
827 830
828 } } // namespace v8::internal 831 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698