| OLD | NEW |
| 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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2346 // R6: iterator which initially points to the start of the variable | 2346 // R6: iterator which initially points to the start of the variable |
| 2347 // data area to be initialized. | 2347 // data area to be initialized. |
| 2348 // R8: null | 2348 // R8: null |
| 2349 if (num_elements > 0) { | 2349 if (num_elements > 0) { |
| 2350 const intptr_t array_size = instance_size - sizeof(RawArray); | 2350 const intptr_t array_size = instance_size - sizeof(RawArray); |
| 2351 __ LoadObject(R8, Object::null_object()); | 2351 __ LoadObject(R8, Object::null_object()); |
| 2352 if (num_elements >= 2) { | 2352 if (num_elements >= 2) { |
| 2353 __ mov(R9, Operand(R8)); | 2353 __ mov(R9, Operand(R8)); |
| 2354 } else { | 2354 } else { |
| 2355 #if defined(DEBUG) | 2355 #if defined(DEBUG) |
| 2356 // Clobber R7 with an invalid pointer. | 2356 // Clobber R9 with an invalid pointer. |
| 2357 __ LoadImmediate(R9, 0x1); | 2357 __ LoadImmediate(R9, 0x1); |
| 2358 #endif // DEBUG | 2358 #endif // DEBUG |
| 2359 } | 2359 } |
| 2360 __ AddImmediate(R6, R0, sizeof(RawArray) - kHeapObjectTag); | 2360 __ AddImmediate(R6, R0, sizeof(RawArray) - kHeapObjectTag); |
| 2361 if (array_size < (kInlineArraySize * kWordSize)) { | 2361 if (array_size < (kInlineArraySize * kWordSize)) { |
| 2362 __ InitializeFieldsNoBarrierUnrolled(R0, R6, 0, num_elements * kWordSize, | 2362 __ InitializeFieldsNoBarrierUnrolled(R0, R6, 0, num_elements * kWordSize, |
| 2363 R8, R9); | 2363 R8, R9); |
| 2364 } else { | 2364 } else { |
| 2365 __ InitializeFieldsNoBarrier(R0, R6, R3, R8, R9); | 2365 __ InitializeFieldsNoBarrier(R0, R6, R3, R8, R9); |
| 2366 } | 2366 } |
| (...skipping 4493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6860 1, | 6860 1, |
| 6861 locs()); | 6861 locs()); |
| 6862 __ Drop(1); | 6862 __ Drop(1); |
| 6863 __ Pop(result); | 6863 __ Pop(result); |
| 6864 } | 6864 } |
| 6865 | 6865 |
| 6866 | 6866 |
| 6867 } // namespace dart | 6867 } // namespace dart |
| 6868 | 6868 |
| 6869 #endif // defined TARGET_ARCH_ARM | 6869 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |