Chromium Code Reviews| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 uword pc_; | 95 uword pc_; |
| 96 uint64_t icount_; | |
|
zra
2017/06/30 18:59:14
We don't need this field in a PRODUCT build. You c
alexmarkov
2017/06/30 23:02:00
Done.
| |
| 96 | 97 |
| 97 SimulatorSetjmpBuffer* last_setjmp_buffer_; | 98 SimulatorSetjmpBuffer* last_setjmp_buffer_; |
| 98 uword top_exit_frame_info_; | 99 uword top_exit_frame_info_; |
| 99 | 100 |
| 100 RawObject* special_[kSpecialIndexCount]; | 101 RawObject* special_[kSpecialIndexCount]; |
| 101 | 102 |
| 102 static IntrinsicHandler intrinsics_[kIntrinsicCount]; | 103 static IntrinsicHandler intrinsics_[kIntrinsicCount]; |
| 103 | 104 |
| 104 void Exit(Thread* thread, | 105 void Exit(Thread* thread, |
| 105 RawObject** base, | 106 RawObject** base, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 RawICData* icdata, | 155 RawICData* icdata, |
| 155 RawObject** call_base, | 156 RawObject** call_base, |
| 156 RawObject** call_top, | 157 RawObject** call_top, |
| 157 RawArray** argdesc, | 158 RawArray** argdesc, |
| 158 RawObjectPool** pp, | 159 RawObjectPool** pp, |
| 159 uint32_t** pc, | 160 uint32_t** pc, |
| 160 RawObject*** FP, | 161 RawObject*** FP, |
| 161 RawObject*** SP, | 162 RawObject*** SP, |
| 162 bool optimized); | 163 bool optimized); |
| 163 | 164 |
| 165 // Returns true if tracing of executed instructions is enabled. | |
| 166 bool IsTracingExecution() const; | |
|
zra
2017/06/30 18:59:14
ditto
alexmarkov
2017/06/30 23:01:59
Done.
| |
| 167 | |
| 168 // Prints bytecode instruction at given pc for instruction tracing. | |
| 169 void TraceInstruction(uint32_t* pc) const; | |
|
zra
2017/06/30 18:59:14
ditto
alexmarkov
2017/06/30 23:01:59
Done.
| |
| 170 | |
| 164 // Longjmp support for exceptions. | 171 // Longjmp support for exceptions. |
| 165 SimulatorSetjmpBuffer* last_setjmp_buffer() { return last_setjmp_buffer_; } | 172 SimulatorSetjmpBuffer* last_setjmp_buffer() { return last_setjmp_buffer_; } |
| 166 void set_last_setjmp_buffer(SimulatorSetjmpBuffer* buffer) { | 173 void set_last_setjmp_buffer(SimulatorSetjmpBuffer* buffer) { |
| 167 last_setjmp_buffer_ = buffer; | 174 last_setjmp_buffer_ = buffer; |
| 168 } | 175 } |
| 169 | 176 |
| 170 friend class SimulatorSetjmpBuffer; | 177 friend class SimulatorSetjmpBuffer; |
| 171 DISALLOW_COPY_AND_ASSIGN(Simulator); | 178 DISALLOW_COPY_AND_ASSIGN(Simulator); |
| 172 }; | 179 }; |
| 173 | 180 |
| 174 } // namespace dart | 181 } // namespace dart |
| 175 | 182 |
| 176 #endif // RUNTIME_VM_SIMULATOR_DBC_H_ | 183 #endif // RUNTIME_VM_SIMULATOR_DBC_H_ |
| OLD | NEW |