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

Side by Side Diff: dart/runtime/vm/flow_graph_type_propagator.cc

Issue 119673004: Version 1.1.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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 | « dart/runtime/vm/flow_graph_optimizer.cc ('k') | dart/runtime/vm/intermediate_language.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « dart/runtime/vm/flow_graph_optimizer.cc ('k') | dart/runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698