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

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, 3 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
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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 return Type::BoolInterface(); 892 return Type::BoolInterface();
893 } 893 }
894 894
895 895
896 RawAbstractType* InstanceOfComp::CompileType() const { 896 RawAbstractType* InstanceOfComp::CompileType() const {
897 return Type::BoolInterface(); 897 return Type::BoolInterface();
898 } 898 }
899 899
900 900
901 RawAbstractType* CreateArrayComp::CompileType() const { 901 RawAbstractType* CreateArrayComp::CompileType() const {
902 // TODO(regis): Be more specific. 902 return type().raw();
903 return Type::DynamicType();
904 } 903 }
905 904
906 905
907 RawAbstractType* CreateClosureComp::CompileType() const { 906 RawAbstractType* CreateClosureComp::CompileType() const {
908 const Function& fun = function(); 907 const Function& fun = function();
909 const Class& signature_class = Class::Handle(fun.signature_class()); 908 const Class& signature_class = Class::Handle(fun.signature_class());
910 return signature_class.SignatureType(); 909 return signature_class.SignatureType();
911 } 910 }
912 911
913 912
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 ? UseDefinition(values()[i]->AsUse()->definition()) 1533 ? UseDefinition(values()[i]->AsUse()->definition())
1535 : val); 1534 : val);
1536 } 1535 }
1537 return copy; 1536 return copy;
1538 } 1537 }
1539 1538
1540 1539
1541 #undef __ 1540 #undef __
1542 1541
1543 } // namespace dart 1542 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698