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

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

Issue 11855007: Optimize stores to Uint8List. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/flow_graph_optimizer.cc ('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 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 return AbstractType::null(); 1183 return AbstractType::null();
1184 } 1184 }
1185 1185
1186 1186
1187 Representation StoreIndexedInstr::RequiredInputRepresentation( 1187 Representation StoreIndexedInstr::RequiredInputRepresentation(
1188 intptr_t idx) const { 1188 intptr_t idx) const {
1189 if ((idx == 0) || (idx == 1)) return kTagged; 1189 if ((idx == 0) || (idx == 1)) return kTagged;
1190 ASSERT(idx == 2); 1190 ASSERT(idx == 2);
1191 switch (class_id_) { 1191 switch (class_id_) {
1192 case kArrayCid: 1192 case kArrayCid:
1193 case kUint8ArrayCid:
1193 return kTagged; 1194 return kTagged;
1194 case kFloat32ArrayCid : 1195 case kFloat32ArrayCid :
1195 case kFloat64ArrayCid : 1196 case kFloat64ArrayCid :
1196 return kUnboxedDouble; 1197 return kUnboxedDouble;
1197 default: 1198 default:
1198 UNIMPLEMENTED(); 1199 UNIMPLEMENTED();
1199 return kTagged; 1200 return kTagged;
1200 } 1201 }
1201 } 1202 }
1202 1203
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 default: 2956 default:
2956 UNREACHABLE(); 2957 UNREACHABLE();
2957 return -1; 2958 return -1;
2958 } 2959 }
2959 } 2960 }
2960 2961
2961 2962
2962 #undef __ 2963 #undef __
2963 2964
2964 } // namespace dart 2965 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698