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, | |
71 RawObject* raw_exception, | 70 RawObject* raw_exception, |
72 RawObject* raw_stacktrace, | 71 RawObject* raw_stacktrace, |
73 Thread* thread); | 72 Thread* thread); |
74 | 73 |
75 uword get_sp() const { return reinterpret_cast<uword>(sp_); } | 74 uword get_sp() const { return reinterpret_cast<uword>(sp_); } |
76 uword get_fp() const { return reinterpret_cast<uword>(fp_); } | 75 uword get_fp() const { return reinterpret_cast<uword>(fp_); } |
77 uword get_pc() const { return reinterpret_cast<uword>(pc_); } | 76 uword get_pc() const { return reinterpret_cast<uword>(pc_); } |
78 | 77 |
79 enum IntrinsicId { | 78 enum IntrinsicId { |
80 #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) \ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 last_setjmp_buffer_ = buffer; | 166 last_setjmp_buffer_ = buffer; |
168 } | 167 } |
169 | 168 |
170 friend class SimulatorSetjmpBuffer; | 169 friend class SimulatorSetjmpBuffer; |
171 DISALLOW_COPY_AND_ASSIGN(Simulator); | 170 DISALLOW_COPY_AND_ASSIGN(Simulator); |
172 }; | 171 }; |
173 | 172 |
174 } // namespace dart | 173 } // namespace dart |
175 | 174 |
176 #endif // VM_SIMULATOR_DBC_H_ | 175 #endif // VM_SIMULATOR_DBC_H_ |
OLD | NEW |