| 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 #ifndef VM_THREAD_INTERRUPTER_H_ | 5 #ifndef VM_THREAD_INTERRUPTER_H_ |
| 6 #define VM_THREAD_INTERRUPTER_H_ | 6 #define VM_THREAD_INTERRUPTER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/signal_handler.h" | 9 #include "vm/signal_handler.h" |
| 10 #include "vm/thread.h" | 10 #include "vm/os_thread.h" |
| 11 | 11 |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 | 14 |
| 15 struct InterruptedThreadState { | 15 struct InterruptedThreadState { |
| 16 ThreadId tid; | 16 ThreadId tid; |
| 17 uintptr_t pc; | 17 uintptr_t pc; |
| 18 uintptr_t csp; | 18 uintptr_t csp; |
| 19 uintptr_t dsp; | 19 uintptr_t dsp; |
| 20 uintptr_t fp; | 20 uintptr_t fp; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 static void InstallSignalHandler(); | 92 static void InstallSignalHandler(); |
| 93 | 93 |
| 94 friend class ThreadInterrupterVisitIsolates; | 94 friend class ThreadInterrupterVisitIsolates; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 void ThreadInterruptNoOp(const InterruptedThreadState& state, void* data); | 97 void ThreadInterruptNoOp(const InterruptedThreadState& state, void* data); |
| 98 | 98 |
| 99 } // namespace dart | 99 } // namespace dart |
| 100 | 100 |
| 101 #endif // VM_THREAD_INTERRUPTER_H_ | 101 #endif // VM_THREAD_INTERRUPTER_H_ |
| OLD | NEW |