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 2349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2360 __ ldr(R0, Address(THR, Thread::dart_stream_offset())); | 2360 __ ldr(R0, Address(THR, Thread::dart_stream_offset())); |
2361 // Load uintptr_t from TimelineStream*. | 2361 // Load uintptr_t from TimelineStream*. |
2362 __ ldr(R0, Address(R0, TimelineStream::enabled_offset())); | 2362 __ ldr(R0, Address(R0, TimelineStream::enabled_offset())); |
2363 __ cmp(R0, Operand(0)); | 2363 __ cmp(R0, Operand(0)); |
2364 __ LoadObject(R0, Bool::False()); | 2364 __ LoadObject(R0, Bool::False()); |
2365 __ LoadObject(TMP, Bool::True()); | 2365 __ LoadObject(TMP, Bool::True()); |
2366 __ csel(R0, TMP, R0, NE); | 2366 __ csel(R0, TMP, R0, NE); |
2367 __ ret(); | 2367 __ ret(); |
2368 } | 2368 } |
2369 | 2369 |
| 2370 |
| 2371 void Intrinsifier::ClearAsyncThreadStackTrace(Assembler* assembler) { |
| 2372 __ LoadObject(R0, Object::null_object()); |
| 2373 __ str(R0, Address(THR, Thread::async_stack_trace_offset())); |
| 2374 __ ret(); |
| 2375 } |
| 2376 |
| 2377 |
| 2378 void Intrinsifier::SetAsyncThreadStackTrace(Assembler* assembler) { |
| 2379 __ ldr(R0, Address(THR, Thread::async_stack_trace_offset())); |
| 2380 __ LoadObject(R0, Object::null_object()); |
| 2381 __ ret(); |
| 2382 } |
| 2383 |
2370 } // namespace dart | 2384 } // namespace dart |
2371 | 2385 |
2372 #endif // defined TARGET_ARCH_ARM64 | 2386 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |