| 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 #include "vm/regexp_assembler.h" | 10 #include "vm/regexp_assembler.h" |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 return *value()->Type(); | 914 return *value()->Type(); |
| 915 } | 915 } |
| 916 | 916 |
| 917 | 917 |
| 918 CompileType StoreLocalInstr::ComputeType() const { | 918 CompileType StoreLocalInstr::ComputeType() const { |
| 919 // Returns stored value. | 919 // Returns stored value. |
| 920 return *value()->Type(); | 920 return *value()->Type(); |
| 921 } | 921 } |
| 922 | 922 |
| 923 | 923 |
| 924 CompileType StringFromCharCodeInstr::ComputeType() const { | 924 CompileType OneByteStringFromCharCodeInstr::ComputeType() const { |
| 925 return CompileType::FromCid(cid_); | 925 return CompileType::FromCid(kOneByteStringCid); |
| 926 } | 926 } |
| 927 | 927 |
| 928 | 928 |
| 929 CompileType StringToCharCodeInstr::ComputeType() const { | 929 CompileType StringToCharCodeInstr::ComputeType() const { |
| 930 return CompileType::FromCid(kSmiCid); | 930 return CompileType::FromCid(kSmiCid); |
| 931 } | 931 } |
| 932 | 932 |
| 933 | 933 |
| 934 CompileType StringInterpolateInstr::ComputeType() const { | 934 CompileType StringInterpolateInstr::ComputeType() const { |
| 935 // TODO(srdjan): Do better and determine if it is a one or two byte string. | 935 // TODO(srdjan): Do better and determine if it is a one or two byte string. |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 CompileType MergedMathInstr::ComputeType() const { | 1386 CompileType MergedMathInstr::ComputeType() const { |
| 1387 return CompileType::Dynamic(); | 1387 return CompileType::Dynamic(); |
| 1388 } | 1388 } |
| 1389 | 1389 |
| 1390 | 1390 |
| 1391 CompileType ExtractNthOutputInstr::ComputeType() const { | 1391 CompileType ExtractNthOutputInstr::ComputeType() const { |
| 1392 return CompileType::FromCid(definition_cid_); | 1392 return CompileType::FromCid(definition_cid_); |
| 1393 } | 1393 } |
| 1394 | 1394 |
| 1395 } // namespace dart | 1395 } // namespace dart |
| OLD | NEW |