| 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_SIGNAL_HANDLER_H_ | 5 #ifndef VM_SIGNAL_HANDLER_H_ |
| 6 #define VM_SIGNAL_HANDLER_H_ | 6 #define VM_SIGNAL_HANDLER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 class SignalHandler : public AllStatic { | 33 class SignalHandler : public AllStatic { |
| 34 public: | 34 public: |
| 35 static void Install(SignalAction action); | 35 static void Install(SignalAction action); |
| 36 static uintptr_t GetProgramCounter(const mcontext_t& mcontext); | 36 static uintptr_t GetProgramCounter(const mcontext_t& mcontext); |
| 37 static uintptr_t GetFramePointer(const mcontext_t& mcontext); | 37 static uintptr_t GetFramePointer(const mcontext_t& mcontext); |
| 38 static uintptr_t GetStackPointer(const mcontext_t& mcontext); | 38 static uintptr_t GetStackPointer(const mcontext_t& mcontext); |
| 39 private: | 39 private: |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 | 42 |
| 43 class ScopedSignalBlocker { | |
| 44 public: | |
| 45 ScopedSignalBlocker(); | |
| 46 ~ScopedSignalBlocker(); | |
| 47 | |
| 48 private: | |
| 49 sigset_t old_; | |
| 50 }; | |
| 51 | |
| 52 | |
| 53 } // namespace dart | 43 } // namespace dart |
| 54 | 44 |
| 55 #endif // VM_SIGNAL_HANDLER_H_ | 45 #endif // VM_SIGNAL_HANDLER_H_ |
| OLD | NEW |