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

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

Issue 12225049: Add optimized loads from ExternalUint8ClampedArrays. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « no previous file | runtime/vm/flow_graph_compiler_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/cha.h" 9 #include "vm/cha.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 case kInt32ArrayCid: 896 case kInt32ArrayCid:
897 return Int32Array::kBytesPerElement; 897 return Int32Array::kBytesPerElement;
898 case kUint32ArrayCid: 898 case kUint32ArrayCid:
899 return Uint32Array::kBytesPerElement; 899 return Uint32Array::kBytesPerElement;
900 case kOneByteStringCid: 900 case kOneByteStringCid:
901 return OneByteString::kBytesPerElement; 901 return OneByteString::kBytesPerElement;
902 case kTwoByteStringCid: 902 case kTwoByteStringCid:
903 return TwoByteString::kBytesPerElement; 903 return TwoByteString::kBytesPerElement;
904 case kExternalUint8ArrayCid: 904 case kExternalUint8ArrayCid:
905 return ExternalUint8Array::kBytesPerElement; 905 return ExternalUint8Array::kBytesPerElement;
906 case kExternalUint8ClampedArrayCid:
907 return ExternalUint8ClampedArray::kBytesPerElement;
906 default: 908 default:
907 UNIMPLEMENTED(); 909 UNIMPLEMENTED();
908 return 0; 910 return 0;
909 } 911 }
910 } 912 }
911 913
912 914
913 intptr_t FlowGraphCompiler::DataOffsetFor(intptr_t cid) { 915 intptr_t FlowGraphCompiler::DataOffsetFor(intptr_t cid) {
914 switch (cid) { 916 switch (cid) {
915 case kArrayCid: 917 case kArrayCid:
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 if (i != largest_ix) { 995 if (i != largest_ix) {
994 // Swap. 996 // Swap.
995 CidTarget temp = (*sorted)[i]; 997 CidTarget temp = (*sorted)[i];
996 (*sorted)[i] = (*sorted)[largest_ix]; 998 (*sorted)[i] = (*sorted)[largest_ix];
997 (*sorted)[largest_ix] = temp; 999 (*sorted)[largest_ix] = temp;
998 } 1000 }
999 } 1001 }
1000 } 1002 }
1001 1003
1002 } // namespace dart 1004 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698