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 VM_SIMULATOR_DBC_H_ | 5 #ifndef VM_SIMULATOR_DBC_H_ |
6 #define VM_SIMULATOR_DBC_H_ | 6 #define VM_SIMULATOR_DBC_H_ |
7 | 7 |
8 #ifndef VM_SIMULATOR_H_ | 8 #ifndef 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Longjmp(uword pc, | 67 void Longjmp(uword pc, |
68 uword sp, | 68 uword sp, |
69 uword fp, | 69 uword fp, |
| 70 uword pp, |
70 RawObject* raw_exception, | 71 RawObject* raw_exception, |
71 RawObject* raw_stacktrace, | 72 RawObject* raw_stacktrace, |
72 Thread* thread); | 73 Thread* thread); |
73 | 74 |
74 uword get_sp() const { return reinterpret_cast<uword>(sp_); } | 75 uword get_sp() const { return reinterpret_cast<uword>(sp_); } |
75 uword get_fp() const { return reinterpret_cast<uword>(fp_); } | 76 uword get_fp() const { return reinterpret_cast<uword>(fp_); } |
76 uword get_pc() const { return reinterpret_cast<uword>(pc_); } | 77 uword get_pc() const { return reinterpret_cast<uword>(pc_); } |
77 | 78 |
78 enum IntrinsicId { | 79 enum IntrinsicId { |
79 #define V(test_class_name, test_function_name, enum_name, type, fp) \ | 80 #define V(test_class_name, test_function_name, enum_name, type, fp) \ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 last_setjmp_buffer_ = buffer; | 167 last_setjmp_buffer_ = buffer; |
167 } | 168 } |
168 | 169 |
169 friend class SimulatorSetjmpBuffer; | 170 friend class SimulatorSetjmpBuffer; |
170 DISALLOW_COPY_AND_ASSIGN(Simulator); | 171 DISALLOW_COPY_AND_ASSIGN(Simulator); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace dart | 174 } // namespace dart |
174 | 175 |
175 #endif // VM_SIMULATOR_DBC_H_ | 176 #endif // VM_SIMULATOR_DBC_H_ |
OLD | NEW |