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

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: 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') | runtime/vm/intermediate_language_ia32.cc » ('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) 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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 RawAbstractType* StringCharCodeAtInstr::CompileType() const { 1122 RawAbstractType* StringCharCodeAtInstr::CompileType() const {
1123 return Type::IntType(); 1123 return Type::IntType();
1124 } 1124 }
1125 1125
1126 1126
1127 intptr_t StringCharCodeAtInstr::ResultCid() const { 1127 intptr_t StringCharCodeAtInstr::ResultCid() const {
1128 return kSmiCid; 1128 return kSmiCid;
1129 } 1129 }
1130 1130
1131 1131
1132 RawAbstractType* StringFromCharCodeInstr::CompileType() const {
1133 return Type::StringType();
1134 }
1135
1136
1137 intptr_t StringFromCharCodeInstr::ResultCid() const {
1138 return kDynamicCid;
1139 }
1140
1141
1132 RawAbstractType* LoadIndexedInstr::CompileType() const { 1142 RawAbstractType* LoadIndexedInstr::CompileType() const {
1133 switch (class_id_) { 1143 switch (class_id_) {
1134 case kArrayCid: 1144 case kArrayCid:
1135 case kGrowableObjectArrayCid: 1145 case kGrowableObjectArrayCid:
1136 case kImmutableArrayCid: 1146 case kImmutableArrayCid:
1137 return Type::DynamicType(); 1147 return Type::DynamicType();
1138 case kFloat32ArrayCid : 1148 case kFloat32ArrayCid :
1139 case kFloat64ArrayCid : 1149 case kFloat64ArrayCid :
1140 return Type::Double(); 1150 return Type::Double();
1141 default: 1151 default:
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
2654 return Array::length_offset(); 2664 return Array::length_offset();
2655 default: 2665 default:
2656 UNREACHABLE(); 2666 UNREACHABLE();
2657 return -1; 2667 return -1;
2658 } 2668 }
2659 } 2669 }
2660 2670
2661 #undef __ 2671 #undef __
2662 2672
2663 } // namespace dart 2673 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698