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

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

Issue 765743003: Support use of external strings as inputs to LoadCodeUnitsInstr. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: safety Created 6 years 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/assembler_arm.h ('k') | runtime/vm/assembler_arm64.h » ('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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
(...skipping 2146 matching lines...) Expand 10 before | Expand all | Expand 10 after
2157 } 2157 }
2158 } 2158 }
2159 2159
2160 2160
2161 OperandSize Address::OperandSizeFor(intptr_t cid) { 2161 OperandSize Address::OperandSizeFor(intptr_t cid) {
2162 switch (cid) { 2162 switch (cid) {
2163 case kArrayCid: 2163 case kArrayCid:
2164 case kImmutableArrayCid: 2164 case kImmutableArrayCid:
2165 return kWord; 2165 return kWord;
2166 case kOneByteStringCid: 2166 case kOneByteStringCid:
2167 case kExternalOneByteStringCid:
2167 return kByte; 2168 return kByte;
2168 case kTwoByteStringCid: 2169 case kTwoByteStringCid:
2170 case kExternalTwoByteStringCid:
2169 return kHalfword; 2171 return kHalfword;
2170 case kTypedDataInt8ArrayCid: 2172 case kTypedDataInt8ArrayCid:
2171 return kByte; 2173 return kByte;
2172 case kTypedDataUint8ArrayCid: 2174 case kTypedDataUint8ArrayCid:
2173 case kTypedDataUint8ClampedArrayCid: 2175 case kTypedDataUint8ClampedArrayCid:
2174 case kExternalTypedDataUint8ArrayCid: 2176 case kExternalTypedDataUint8ArrayCid:
2175 case kExternalTypedDataUint8ClampedArrayCid: 2177 case kExternalTypedDataUint8ClampedArrayCid:
2176 return kUnsignedByte; 2178 return kUnsignedByte;
2177 case kTypedDataInt16ArrayCid: 2179 case kTypedDataInt16ArrayCid:
2178 return kHalfword; 2180 return kHalfword;
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
3473 3475
3474 3476
3475 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3477 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3476 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3478 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3477 return fpu_reg_names[reg]; 3479 return fpu_reg_names[reg];
3478 } 3480 }
3479 3481
3480 } // namespace dart 3482 } // namespace dart
3481 3483
3482 #endif // defined TARGET_ARCH_ARM 3484 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.h ('k') | runtime/vm/assembler_arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698