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

Side by Side Diff: src/typing.cc

Issue 1125183008: [es6] Spread in array literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 7 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
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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::VisitSpread(Spread* expr) { UNREACHABLE(); } 757 void AstTyper::VisitSpread(Spread* expr) { RECURSE(Visit(expr->expression())); }
758 758
759 759
760 void AstTyper::VisitThisFunction(ThisFunction* expr) { 760 void AstTyper::VisitThisFunction(ThisFunction* expr) {
761 } 761 }
762 762
763 763
764 void AstTyper::VisitSuperReference(SuperReference* expr) {} 764 void AstTyper::VisitSuperReference(SuperReference* expr) {}
765 765
766 766
767 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { 767 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) {
(...skipping 15 matching lines...) Expand all
783 783
784 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { 784 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) {
785 } 785 }
786 786
787 787
788 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { 788 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) {
789 } 789 }
790 790
791 791
792 } } // namespace v8::internal 792 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698