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/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
9 | 9 |
10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
(...skipping 2282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2293 // Load TimelineStream*. | 2293 // Load TimelineStream*. |
2294 __ ldr(R0, Address(THR, Thread::dart_stream_offset())); | 2294 __ ldr(R0, Address(THR, Thread::dart_stream_offset())); |
2295 // Load uintptr_t from TimelineStream*. | 2295 // Load uintptr_t from TimelineStream*. |
2296 __ ldr(R0, Address(R0, TimelineStream::enabled_offset())); | 2296 __ ldr(R0, Address(R0, TimelineStream::enabled_offset())); |
2297 __ cmp(R0, Operand(0)); | 2297 __ cmp(R0, Operand(0)); |
2298 __ LoadObject(R0, Bool::True(), NE); | 2298 __ LoadObject(R0, Bool::True(), NE); |
2299 __ LoadObject(R0, Bool::False(), EQ); | 2299 __ LoadObject(R0, Bool::False(), EQ); |
2300 __ Ret(); | 2300 __ Ret(); |
2301 } | 2301 } |
2302 | 2302 |
| 2303 |
| 2304 void Intrinsifier::ClearAsyncThreadStackTrace(Assembler* assembler) { |
| 2305 __ LoadObject(R0, Object::null_object()); |
| 2306 __ str(R0, Address(THR, Thread::async_stack_trace_offset())); |
| 2307 __ Ret(); |
| 2308 } |
| 2309 |
| 2310 |
| 2311 void Intrinsifier::SetAsyncThreadStackTrace(Assembler* assembler) { |
| 2312 __ ldr(R0, Address(THR, Thread::async_stack_trace_offset())); |
| 2313 __ LoadObject(R0, Object::null_object()); |
| 2314 __ Ret(); |
| 2315 } |
| 2316 |
2303 } // namespace dart | 2317 } // namespace dart |
2304 | 2318 |
2305 #endif // defined TARGET_ARCH_ARM | 2319 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |