| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 namespace dart { | 45 namespace dart { |
| 46 | 46 |
| 47 typedef void (*SignalAction)(int signal, siginfo_t* info, | 47 typedef void (*SignalAction)(int signal, siginfo_t* info, |
| 48 void* context); | 48 void* context); |
| 49 | 49 |
| 50 class SignalHandler : public AllStatic { | 50 class SignalHandler : public AllStatic { |
| 51 public: | 51 public: |
| 52 static void Install(SignalAction action); | 52 static void Install(SignalAction action); |
| 53 static uintptr_t GetProgramCounter(const mcontext_t& mcontext); | 53 static uintptr_t GetProgramCounter(const mcontext_t& mcontext); |
| 54 static uintptr_t GetFramePointer(const mcontext_t& mcontext); | 54 static uintptr_t GetFramePointer(const mcontext_t& mcontext); |
| 55 static uintptr_t GetStackPointer(const mcontext_t& mcontext); | 55 static uintptr_t GetCStackPointer(const mcontext_t& mcontext); |
| 56 static uintptr_t GetDartStackPointer(const mcontext_t& mcontext); |
| 56 private: | 57 private: |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 | 60 |
| 60 } // namespace dart | 61 } // namespace dart |
| 61 | 62 |
| 62 #endif // VM_SIGNAL_HANDLER_H_ | 63 #endif // VM_SIGNAL_HANDLER_H_ |
| OLD | NEW |