OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_WASM_INTERPRETER_H_ | 5 #ifndef V8_WASM_INTERPRETER_H_ |
6 #define V8_WASM_INTERPRETER_H_ | 6 #define V8_WASM_INTERPRETER_H_ |
7 | 7 |
8 #include "src/wasm/wasm-opcodes.h" | 8 #include "src/wasm/wasm-opcodes.h" |
9 #include "src/zone-containers.h" | 9 #include "src/zone-containers.h" |
10 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // Gets the current state of the breakpoint at {function}. | 156 // Gets the current state of the breakpoint at {function}. |
157 bool GetBreakpoint(const WasmFunction* function, pc_t pc); | 157 bool GetBreakpoint(const WasmFunction* function, pc_t pc); |
158 | 158 |
159 // Enable or disable tracing for {function}. Return the previous state. | 159 // Enable or disable tracing for {function}. Return the previous state. |
160 bool SetTracing(const WasmFunction* function, bool enabled); | 160 bool SetTracing(const WasmFunction* function, bool enabled); |
161 | 161 |
162 //========================================================================== | 162 //========================================================================== |
163 // Thread iteration and inspection. | 163 // Thread iteration and inspection. |
164 //========================================================================== | 164 //========================================================================== |
165 int GetThreadCount(); | 165 int GetThreadCount(); |
166 Thread& GetThread(int id); | 166 Thread* GetThread(int id); |
167 | 167 |
168 //========================================================================== | 168 //========================================================================== |
169 // Stack frame inspection. | 169 // Stack frame inspection. |
170 //========================================================================== | 170 //========================================================================== |
171 WasmVal GetLocalVal(const WasmFrame* frame, int index); | 171 WasmVal GetLocalVal(const WasmFrame* frame, int index); |
172 WasmVal GetExprVal(const WasmFrame* frame, int pc); | 172 WasmVal GetExprVal(const WasmFrame* frame, int pc); |
173 void SetLocalVal(WasmFrame* frame, int index, WasmVal val); | 173 void SetLocalVal(WasmFrame* frame, int index, WasmVal val); |
174 void SetExprVal(WasmFrame* frame, int pc, WasmVal val); | 174 void SetExprVal(WasmFrame* frame, int pc, WasmVal val); |
175 | 175 |
176 //========================================================================== | 176 //========================================================================== |
(...skipping 23 matching lines...) Expand all Loading... |
200 private: | 200 private: |
201 Zone zone_; | 201 Zone zone_; |
202 WasmInterpreterInternals* internals_; | 202 WasmInterpreterInternals* internals_; |
203 }; | 203 }; |
204 | 204 |
205 } // namespace wasm | 205 } // namespace wasm |
206 } // namespace internal | 206 } // namespace internal |
207 } // namespace v8 | 207 } // namespace v8 |
208 | 208 |
209 #endif // V8_WASM_INTERPRETER_H_ | 209 #endif // V8_WASM_INTERPRETER_H_ |
OLD | NEW |