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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 12041005: Optimize loads and stores to Int32Array and Uint32Array. (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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_compiler_x64.cc
===================================================================
--- runtime/vm/flow_graph_compiler_x64.cc (revision 17337)
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy)
@@ -1527,6 +1527,10 @@
return FieldAddress(array, index, TIMES_1, Int16Array::data_offset());
case kUint16ArrayCid:
return FieldAddress(array, index, TIMES_1, Uint16Array::data_offset());
+ case kInt32ArrayCid:
+ return FieldAddress(array, index, TIMES_2, Int32Array::data_offset());
+ case kUint32ArrayCid:
+ return FieldAddress(array, index, TIMES_2, Uint32Array::data_offset());
case kOneByteStringCid:
return FieldAddress(array, index, TIMES_1, OneByteString::data_offset());
case kTwoByteStringCid:

Powered by Google App Engine
This is Rietveld 408576698