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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
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 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2416 // Load TimelineStream*. | 2416 // Load TimelineStream*. |
2417 __ lw(V0, Address(THR, Thread::dart_stream_offset())); | 2417 __ lw(V0, Address(THR, Thread::dart_stream_offset())); |
2418 // Load uintptr_t from TimelineStream*. | 2418 // Load uintptr_t from TimelineStream*. |
2419 __ lw(T0, Address(V0, TimelineStream::enabled_offset())); | 2419 __ lw(T0, Address(V0, TimelineStream::enabled_offset())); |
2420 __ LoadObject(V0, Bool::True()); | 2420 __ LoadObject(V0, Bool::True()); |
2421 __ LoadObject(V1, Bool::False()); | 2421 __ LoadObject(V1, Bool::False()); |
2422 __ Ret(); | 2422 __ Ret(); |
2423 __ delay_slot()->movz(V0, V1, T0); // V0 = (T0 == 0) ? V1 : V0. | 2423 __ delay_slot()->movz(V0, V1, T0); // V0 = (T0 == 0) ? V1 : V0. |
2424 } | 2424 } |
2425 | 2425 |
| 2426 |
| 2427 void Intrinsifier::ClearAsyncThreadStackTrace(Assembler* assembler) { |
| 2428 __ LoadObject(V0, Object::null_object()); |
| 2429 __ sw(V0, Address(THR, Thread::async_stack_trace_offset())); |
| 2430 __ Ret(); |
| 2431 } |
| 2432 |
| 2433 |
| 2434 void Intrinsifier::SetAsyncThreadStackTrace(Assembler* assembler) { |
| 2435 __ lw(V0, Address(THR, Thread::async_stack_trace_offset())); |
| 2436 __ LoadObject(V0, Object::null_object()); |
| 2437 __ Ret(); |
| 2438 } |
| 2439 |
2426 } // namespace dart | 2440 } // namespace dart |
2427 | 2441 |
2428 #endif // defined TARGET_ARCH_MIPS | 2442 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |