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

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

Issue 11783006: Intrinsify Uint8ClampedArray's store and load indexed, inline load indexed. (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
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/globals.h" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 // Promote to double. 1067 // Promote to double.
1068 __ cvtss2sd(result, locs()->out().xmm_reg()); 1068 __ cvtss2sd(result, locs()->out().xmm_reg());
1069 } else { 1069 } else {
1070 ASSERT(class_id() == kFloat64ArrayCid); 1070 ASSERT(class_id() == kFloat64ArrayCid);
1071 __ movsd(result, element_address); 1071 __ movsd(result, element_address);
1072 } 1072 }
1073 return; 1073 return;
1074 } 1074 }
1075 1075
1076 Register result = locs()->out().reg(); 1076 Register result = locs()->out().reg();
1077 if (class_id() == kUint8ArrayCid) { 1077 if ((class_id() == kUint8ArrayCid) ||
1078 (class_id() == kUint8ClampedArrayCid)) {
1078 if (index.IsRegister()) { 1079 if (index.IsRegister()) {
1079 __ SmiUntag(index.reg()); 1080 __ SmiUntag(index.reg());
1080 } 1081 }
1081 __ movzxb(result, element_address); 1082 __ movzxb(result, element_address);
1082 __ SmiTag(result); 1083 __ SmiTag(result);
1083 if (index.IsRegister()) { 1084 if (index.IsRegister()) {
1084 __ SmiTag(index.reg()); // Re-tag. 1085 __ SmiTag(index.reg()); // Re-tag.
1085 } 1086 }
1086 return; 1087 return;
1087 } 1088 }
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2460 2461
2461 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2462 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2462 UNIMPLEMENTED(); 2463 UNIMPLEMENTED();
2463 } 2464 }
2464 2465
2465 } // namespace dart 2466 } // namespace dart
2466 2467
2467 #undef __ 2468 #undef __
2468 2469
2469 #endif // defined TARGET_ARCH_X64 2470 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698