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

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: Add construct support, clean out some gunk Created 5 years, 10 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 NarrowLowerType(expr->right(), right_type); 747 NarrowLowerType(expr->right(), right_type);
748 expr->set_combined_type(combined_type); 748 expr->set_combined_type(combined_type);
749 749
750 RECURSE(Visit(expr->left())); 750 RECURSE(Visit(expr->left()));
751 RECURSE(Visit(expr->right())); 751 RECURSE(Visit(expr->right()));
752 752
753 NarrowType(expr, Bounds(Type::Boolean(zone()))); 753 NarrowType(expr, Bounds(Type::Boolean(zone())));
754 } 754 }
755 755
756 756
757 void AstTyper::VisitSpreadOperation(SpreadOperation* expr) {
758 Visit(expr->expression());
759 }
760
761
757 void AstTyper::VisitThisFunction(ThisFunction* expr) { 762 void AstTyper::VisitThisFunction(ThisFunction* expr) {
758 } 763 }
759 764
760 765
761 void AstTyper::VisitSuperReference(SuperReference* expr) {} 766 void AstTyper::VisitSuperReference(SuperReference* expr) {}
762 767
763 768
764 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { 769 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) {
765 for (int i = 0; i < decls->length(); ++i) { 770 for (int i = 0; i < decls->length(); ++i) {
766 Declaration* decl = decls->at(i); 771 Declaration* decl = decls->at(i);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 void AstTyper::VisitModuleUrl(ModuleUrl* module) { 814 void AstTyper::VisitModuleUrl(ModuleUrl* module) {
810 } 815 }
811 816
812 817
813 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { 818 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) {
814 RECURSE(Visit(stmt->body())); 819 RECURSE(Visit(stmt->body()));
815 } 820 }
816 821
817 822
818 } } // namespace v8::internal 823 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698