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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 10878042: Propagate type of list literal from parser to ast, graph, and optimizer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/object.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 return Type::BoolInterface(); 902 return Type::BoolInterface();
903 } 903 }
904 904
905 905
906 RawAbstractType* InstanceOfComp::CompileType() const { 906 RawAbstractType* InstanceOfComp::CompileType() const {
907 return Type::BoolInterface(); 907 return Type::BoolInterface();
908 } 908 }
909 909
910 910
911 RawAbstractType* CreateArrayComp::CompileType() const { 911 RawAbstractType* CreateArrayComp::CompileType() const {
912 // TODO(regis): Be more specific. 912 return type().raw();
913 return Type::DynamicType();
914 } 913 }
915 914
916 915
917 RawAbstractType* CreateClosureComp::CompileType() const { 916 RawAbstractType* CreateClosureComp::CompileType() const {
918 const Function& fun = function(); 917 const Function& fun = function();
919 const Class& signature_class = Class::Handle(fun.signature_class()); 918 const Class& signature_class = Class::Handle(fun.signature_class());
920 return signature_class.SignatureType(); 919 return signature_class.SignatureType();
921 } 920 }
922 921
923 922
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 ? UseDefinition(values()[i]->AsUse()->definition()) 1577 ? UseDefinition(values()[i]->AsUse()->definition())
1579 : val); 1578 : val);
1580 } 1579 }
1581 return copy; 1580 return copy;
1582 } 1581 }
1583 1582
1584 1583
1585 #undef __ 1584 #undef __
1586 1585
1587 } // namespace dart 1586 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698