OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/flow_graph_type_propagator.h" | 5 #include "vm/flow_graph_type_propagator.h" |
6 | 6 |
7 #include "vm/cha.h" | 7 #include "vm/cha.h" |
8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
9 #include "vm/il_printer.h" | 9 #include "vm/il_printer.h" |
10 | 10 |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 // Returns stored value. | 872 // Returns stored value. |
873 return value()->Type(); | 873 return value()->Type(); |
874 } | 874 } |
875 | 875 |
876 | 876 |
877 CompileType StringFromCharCodeInstr::ComputeType() const { | 877 CompileType StringFromCharCodeInstr::ComputeType() const { |
878 return CompileType::FromCid(cid_); | 878 return CompileType::FromCid(cid_); |
879 } | 879 } |
880 | 880 |
881 | 881 |
| 882 CompileType StringToCharCodeInstr::ComputeType() const { |
| 883 return CompileType::FromCid(kSmiCid); |
| 884 } |
| 885 |
| 886 |
882 CompileType StringInterpolateInstr::ComputeType() const { | 887 CompileType StringInterpolateInstr::ComputeType() const { |
883 // TODO(srdjan): Do better and determine if it is a one or two byte string. | 888 // TODO(srdjan): Do better and determine if it is a one or two byte string. |
884 return CompileType::String(); | 889 return CompileType::String(); |
885 } | 890 } |
886 | 891 |
887 | 892 |
888 CompileType* StoreInstanceFieldInstr::ComputeInitialType() const { | 893 CompileType* StoreInstanceFieldInstr::ComputeInitialType() const { |
889 return value()->Type(); | 894 return value()->Type(); |
890 } | 895 } |
891 | 896 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 return CompileType::FromCid(kArrayCid); | 1232 return CompileType::FromCid(kArrayCid); |
1228 } else if (kind() == MergedMathInstr::kSinCos) { | 1233 } else if (kind() == MergedMathInstr::kSinCos) { |
1229 return CompileType::FromCid(kTypedDataFloat64ArrayCid); | 1234 return CompileType::FromCid(kTypedDataFloat64ArrayCid); |
1230 } else { | 1235 } else { |
1231 UNIMPLEMENTED(); | 1236 UNIMPLEMENTED(); |
1232 return CompileType::Dynamic(); | 1237 return CompileType::Dynamic(); |
1233 } | 1238 } |
1234 } | 1239 } |
1235 | 1240 |
1236 } // namespace dart | 1241 } // namespace dart |
OLD | NEW |