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

Unified Diff: runtime/vm/flow_graph_compiler.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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 17337)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -890,6 +890,10 @@
return Int16Array::kBytesPerElement;
case kUint16ArrayCid:
return Uint16Array::kBytesPerElement;
+ case kInt32ArrayCid:
Kevin Millikin (Google) 2013/01/21 15:16:01 There are several places with boilerplate. Keep i
Florian Schneider 2013/01/21 16:03:25 I'll keep that in mind for my next change where I
+ return Int32Array::kBytesPerElement;
+ case kUint32ArrayCid:
+ return Uint32Array::kBytesPerElement;
case kOneByteStringCid:
return OneByteString::kBytesPerElement;
case kTwoByteStringCid:
@@ -922,6 +926,10 @@
return Int16Array::data_offset();
case kUint16ArrayCid:
return Uint16Array::data_offset();
+ case kInt32ArrayCid:
+ return Int32Array::data_offset();
+ case kUint32ArrayCid:
+ return Uint32Array::data_offset();
case kOneByteStringCid:
return OneByteString::data_offset();
case kTwoByteStringCid:
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698