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

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

Issue 11416129: Inline [] operator on one-byte strings. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: removed unnecessary change Created 8 years, 1 month 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
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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 RawAbstractType* StringCharCodeAtInstr::CompileType() const { 1121 RawAbstractType* StringCharCodeAtInstr::CompileType() const {
1122 return Type::IntType(); 1122 return Type::IntType();
1123 } 1123 }
1124 1124
1125 1125
1126 intptr_t StringCharCodeAtInstr::ResultCid() const { 1126 intptr_t StringCharCodeAtInstr::ResultCid() const {
1127 return kSmiCid; 1127 return kSmiCid;
1128 } 1128 }
1129 1129
1130 1130
1131 RawAbstractType* StringFromCharCodeInstr::CompileType() const {
1132 return Type::StringType();
1133 }
1134
1135
1136 intptr_t StringFromCharCodeInstr::ResultCid() const {
1137 return kDynamicCid;
1138 }
1139
1140
1131 RawAbstractType* LoadIndexedInstr::CompileType() const { 1141 RawAbstractType* LoadIndexedInstr::CompileType() const {
1132 switch (class_id_) { 1142 switch (class_id_) {
1133 case kArrayCid: 1143 case kArrayCid:
1134 case kGrowableObjectArrayCid: 1144 case kGrowableObjectArrayCid:
1135 case kImmutableArrayCid: 1145 case kImmutableArrayCid:
1136 return Type::DynamicType(); 1146 return Type::DynamicType();
1137 case kFloat32ArrayCid : 1147 case kFloat32ArrayCid :
1138 case kFloat64ArrayCid : 1148 case kFloat64ArrayCid :
1139 return Type::Double(); 1149 return Type::Double();
1140 default: 1150 default:
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
2653 return Array::length_offset(); 2663 return Array::length_offset();
2654 default: 2664 default:
2655 UNREACHABLE(); 2665 UNREACHABLE();
2656 return -1; 2666 return -1;
2657 } 2667 }
2658 } 2668 }
2659 2669
2660 #undef __ 2670 #undef __
2661 2671
2662 } // namespace dart 2672 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698