OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 RUNTIME_VM_SIMULATOR_DBC_H_ | 5 #ifndef RUNTIME_VM_SIMULATOR_DBC_H_ |
6 #define RUNTIME_VM_SIMULATOR_DBC_H_ | 6 #define RUNTIME_VM_SIMULATOR_DBC_H_ |
7 | 7 |
8 #ifndef RUNTIME_VM_SIMULATOR_H_ | 8 #ifndef RUNTIME_VM_SIMULATOR_H_ |
9 #error Do not include simulator_dbc.h directly; use simulator.h. | 9 #error Do not include simulator_dbc.h directly; use simulator.h. |
10 #endif | 10 #endif |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } | 57 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } |
58 | 58 |
59 // Call on program start. | 59 // Call on program start. |
60 static void InitOnce(); | 60 static void InitOnce(); |
61 | 61 |
62 RawObject* Call(const Code& code, | 62 RawObject* Call(const Code& code, |
63 const Array& arguments_descriptor, | 63 const Array& arguments_descriptor, |
64 const Array& arguments, | 64 const Array& arguments, |
65 Thread* thread); | 65 Thread* thread); |
66 | 66 |
67 void JumpToFrame(uword pc, uword sp, uword fp, Thread* thread); | 67 void Longjmp(uword pc, |
| 68 uword sp, |
| 69 uword fp, |
| 70 RawObject* raw_exception, |
| 71 RawObject* raw_stacktrace, |
| 72 Thread* thread); |
68 | 73 |
69 uword get_sp() const { return reinterpret_cast<uword>(sp_); } | 74 uword get_sp() const { return reinterpret_cast<uword>(sp_); } |
70 uword get_fp() const { return reinterpret_cast<uword>(fp_); } | 75 uword get_fp() const { return reinterpret_cast<uword>(fp_); } |
71 uword get_pc() const { return reinterpret_cast<uword>(pc_); } | 76 uword get_pc() const { return reinterpret_cast<uword>(pc_); } |
72 | 77 |
73 enum IntrinsicId { | 78 enum IntrinsicId { |
74 #define V(test_class_name, test_function_name, enum_name, type, fp) \ | 79 #define V(test_class_name, test_function_name, enum_name, type, fp) \ |
75 k##enum_name##Intrinsic, | 80 k##enum_name##Intrinsic, |
76 ALL_INTRINSICS_LIST(V) GRAPH_INTRINSICS_LIST(V) | 81 ALL_INTRINSICS_LIST(V) GRAPH_INTRINSICS_LIST(V) |
77 #undef V | 82 #undef V |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 last_setjmp_buffer_ = buffer; | 166 last_setjmp_buffer_ = buffer; |
162 } | 167 } |
163 | 168 |
164 friend class SimulatorSetjmpBuffer; | 169 friend class SimulatorSetjmpBuffer; |
165 DISALLOW_COPY_AND_ASSIGN(Simulator); | 170 DISALLOW_COPY_AND_ASSIGN(Simulator); |
166 }; | 171 }; |
167 | 172 |
168 } // namespace dart | 173 } // namespace dart |
169 | 174 |
170 #endif // RUNTIME_VM_SIMULATOR_DBC_H_ | 175 #endif // RUNTIME_VM_SIMULATOR_DBC_H_ |
OLD | NEW |