| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 __ str(R3, Address(R2, 0)); \ | 231 __ str(R3, Address(R2, 0)); \ |
| 232 __ add(R2, R2, Operand(kWordSize)); \ | 232 __ add(R2, R2, Operand(kWordSize)); \ |
| 233 __ b(&init_loop); \ | 233 __ b(&init_loop); \ |
| 234 __ Bind(&done); \ | 234 __ Bind(&done); \ |
| 235 \ | 235 \ |
| 236 __ ret(); \ | 236 __ ret(); \ |
| 237 __ Bind(&fall_through); \ | 237 __ Bind(&fall_through); \ |
| 238 | 238 |
| 239 | 239 |
| 240 #define TYPED_DATA_ALLOCATOR(clazz) \ | 240 #define TYPED_DATA_ALLOCATOR(clazz) \ |
| 241 void Intrinsifier::TypedData_##clazz##_new(Assembler* assembler) { \ | |
| 242 intptr_t size = TypedData::ElementSizeInBytes(kTypedData##clazz##Cid); \ | |
| 243 intptr_t max_len = TypedData::MaxElements(kTypedData##clazz##Cid); \ | |
| 244 int shift = GetScaleFactor(size); \ | |
| 245 TYPED_ARRAY_ALLOCATION(TypedData, kTypedData##clazz##Cid, max_len, shift); \ | |
| 246 } \ | |
| 247 void Intrinsifier::TypedData_##clazz##_factory(Assembler* assembler) { \ | 241 void Intrinsifier::TypedData_##clazz##_factory(Assembler* assembler) { \ |
| 248 intptr_t size = TypedData::ElementSizeInBytes(kTypedData##clazz##Cid); \ | 242 intptr_t size = TypedData::ElementSizeInBytes(kTypedData##clazz##Cid); \ |
| 249 intptr_t max_len = TypedData::MaxElements(kTypedData##clazz##Cid); \ | 243 intptr_t max_len = TypedData::MaxElements(kTypedData##clazz##Cid); \ |
| 250 int shift = GetScaleFactor(size); \ | 244 int shift = GetScaleFactor(size); \ |
| 251 TYPED_ARRAY_ALLOCATION(TypedData, kTypedData##clazz##Cid, max_len, shift); \ | 245 TYPED_ARRAY_ALLOCATION(TypedData, kTypedData##clazz##Cid, max_len, shift); \ |
| 252 } | 246 } |
| 253 CLASS_LIST_TYPED_DATA(TYPED_DATA_ALLOCATOR) | 247 CLASS_LIST_TYPED_DATA(TYPED_DATA_ALLOCATOR) |
| 254 #undef TYPED_DATA_ALLOCATOR | 248 #undef TYPED_DATA_ALLOCATOR |
| 255 | 249 |
| 256 | 250 |
| (...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2195 | 2189 |
| 2196 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2190 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
| 2197 __ LoadIsolate(R0); | 2191 __ LoadIsolate(R0); |
| 2198 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); | 2192 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); |
| 2199 __ ret(); | 2193 __ ret(); |
| 2200 } | 2194 } |
| 2201 | 2195 |
| 2202 } // namespace dart | 2196 } // namespace dart |
| 2203 | 2197 |
| 2204 #endif // defined TARGET_ARCH_ARM64 | 2198 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |