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

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

Issue 1783753002: Fix non-x64 builds. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_arm64.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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 case 4: return 2; 238 case 4: return 2;
239 case 8: return 3; 239 case 8: return 3;
240 case 16: return 4; 240 case 16: return 4;
241 } 241 }
242 UNREACHABLE(); 242 UNREACHABLE();
243 return -1; 243 return -1;
244 } 244 }
245 245
246 246
247 #define TYPED_DATA_ALLOCATOR(clazz) \ 247 #define TYPED_DATA_ALLOCATOR(clazz) \
248 void Intrinsifier::TypedData_##clazz##_new(Assembler* assembler) { \
249 intptr_t size = TypedData::ElementSizeInBytes(kTypedData##clazz##Cid); \
250 intptr_t max_len = TypedData::MaxElements(kTypedData##clazz##Cid); \
251 int shift = GetScaleFactor(size); \
252 TYPED_ARRAY_ALLOCATION(TypedData, kTypedData##clazz##Cid, max_len, shift); \
253 } \
254 void Intrinsifier::TypedData_##clazz##_factory(Assembler* assembler) { \ 248 void Intrinsifier::TypedData_##clazz##_factory(Assembler* assembler) { \
255 intptr_t size = TypedData::ElementSizeInBytes(kTypedData##clazz##Cid); \ 249 intptr_t size = TypedData::ElementSizeInBytes(kTypedData##clazz##Cid); \
256 intptr_t max_len = TypedData::MaxElements(kTypedData##clazz##Cid); \ 250 intptr_t max_len = TypedData::MaxElements(kTypedData##clazz##Cid); \
257 int shift = GetScaleFactor(size); \ 251 int shift = GetScaleFactor(size); \
258 TYPED_ARRAY_ALLOCATION(TypedData, kTypedData##clazz##Cid, max_len, shift); \ 252 TYPED_ARRAY_ALLOCATION(TypedData, kTypedData##clazz##Cid, max_len, shift); \
259 } 253 }
260 CLASS_LIST_TYPED_DATA(TYPED_DATA_ALLOCATOR) 254 CLASS_LIST_TYPED_DATA(TYPED_DATA_ALLOCATOR)
261 #undef TYPED_DATA_ALLOCATOR 255 #undef TYPED_DATA_ALLOCATOR
262 256
263 257
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after
2120 2114
2121 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { 2115 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) {
2122 __ LoadIsolate(R0); 2116 __ LoadIsolate(R0);
2123 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); 2117 __ ldr(R0, Address(R0, Isolate::current_tag_offset()));
2124 __ Ret(); 2118 __ Ret();
2125 } 2119 }
2126 2120
2127 } // namespace dart 2121 } // namespace dart
2128 2122
2129 #endif // defined TARGET_ARCH_ARM 2123 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698