| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |