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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 #undef V | 77 #undef V |
78 kIntrinsicCount, | 78 kIntrinsicCount, |
79 }; | 79 }; |
80 | 80 |
81 static bool IsSupportedIntrinsic(IntrinsicId id) { | 81 static bool IsSupportedIntrinsic(IntrinsicId id) { |
82 return intrinsics_[id] != NULL; | 82 return intrinsics_[id] != NULL; |
83 } | 83 } |
84 | 84 |
85 enum SpecialIndex { | 85 enum SpecialIndex { |
86 kExceptionSpecialIndex, | 86 kExceptionSpecialIndex, |
87 kStacktraceSpecialIndex, | 87 kStackTraceSpecialIndex, |
88 kSpecialIndexCount | 88 kSpecialIndexCount |
89 }; | 89 }; |
90 | 90 |
91 private: | 91 private: |
92 uintptr_t* stack_; | 92 uintptr_t* stack_; |
93 | 93 |
94 RawObject** fp_; | 94 RawObject** fp_; |
95 RawObject** sp_; | 95 RawObject** sp_; |
96 uword pc_; | 96 uword pc_; |
97 | 97 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 last_setjmp_buffer_ = buffer; | 161 last_setjmp_buffer_ = buffer; |
162 } | 162 } |
163 | 163 |
164 friend class SimulatorSetjmpBuffer; | 164 friend class SimulatorSetjmpBuffer; |
165 DISALLOW_COPY_AND_ASSIGN(Simulator); | 165 DISALLOW_COPY_AND_ASSIGN(Simulator); |
166 }; | 166 }; |
167 | 167 |
168 } // namespace dart | 168 } // namespace dart |
169 | 169 |
170 #endif // RUNTIME_VM_SIMULATOR_DBC_H_ | 170 #endif // RUNTIME_VM_SIMULATOR_DBC_H_ |
OLD | NEW |