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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 11412284: Add result cid to StringFromCharCode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | « runtime/vm/intermediate_language.h ('k') | no next file » | 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) 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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 intptr_t StringCharCodeAtInstr::ResultCid() const { 1129 intptr_t StringCharCodeAtInstr::ResultCid() const {
1130 return kSmiCid; 1130 return kSmiCid;
1131 } 1131 }
1132 1132
1133 1133
1134 RawAbstractType* StringFromCharCodeInstr::CompileType() const { 1134 RawAbstractType* StringFromCharCodeInstr::CompileType() const {
1135 return Type::StringType(); 1135 return Type::StringType();
1136 } 1136 }
1137 1137
1138 1138
1139 intptr_t StringFromCharCodeInstr::ResultCid() const {
1140 return kDynamicCid;
1141 }
1142
1143
1144 RawAbstractType* LoadIndexedInstr::CompileType() const { 1139 RawAbstractType* LoadIndexedInstr::CompileType() const {
1145 switch (class_id_) { 1140 switch (class_id_) {
1146 case kArrayCid: 1141 case kArrayCid:
1147 case kImmutableArrayCid: 1142 case kImmutableArrayCid:
1148 return Type::DynamicType(); 1143 return Type::DynamicType();
1149 case kFloat32ArrayCid : 1144 case kFloat32ArrayCid :
1150 case kFloat64ArrayCid : 1145 case kFloat64ArrayCid :
1151 return Type::Double(); 1146 return Type::Double();
1152 case kUint8ArrayCid: 1147 case kUint8ArrayCid:
1153 case kExternalUint8ArrayCid: 1148 case kExternalUint8ArrayCid:
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
2733 default: 2728 default:
2734 UNREACHABLE(); 2729 UNREACHABLE();
2735 return -1; 2730 return -1;
2736 } 2731 }
2737 } 2732 }
2738 2733
2739 2734
2740 #undef __ 2735 #undef __
2741 2736
2742 } // namespace dart 2737 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698