Chromium Code Reviews| 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/zone-containers.h" | 9 #include "src/zone/zone-containers.h" |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 virtual void Pause() = 0; | 118 virtual void Pause() = 0; |
| 119 virtual void Reset() = 0; | 119 virtual void Reset() = 0; |
| 120 virtual ~Thread() {} | 120 virtual ~Thread() {} |
| 121 | 121 |
| 122 // Stack inspection and modification. | 122 // Stack inspection and modification. |
| 123 virtual pc_t GetBreakpointPc() = 0; | 123 virtual pc_t GetBreakpointPc() = 0; |
| 124 virtual int GetFrameCount() = 0; | 124 virtual int GetFrameCount() = 0; |
| 125 virtual const WasmFrame* GetFrame(int index) = 0; | 125 virtual const WasmFrame* GetFrame(int index) = 0; |
| 126 virtual WasmFrame* GetMutableFrame(int index) = 0; | 126 virtual WasmFrame* GetMutableFrame(int index) = 0; |
| 127 virtual WasmVal GetReturnValue(int index = 0) = 0; | 127 virtual WasmVal GetReturnValue(int index = 0) = 0; |
| 128 virtual bool MayProducedNaN() = 0; | |
|
titzer
2016/10/20 10:53:24
Call this possibly nondeterministic? And add a com
ahaas
2016/10/20 13:43:23
Done.
| |
| 128 | 129 |
| 129 // Thread-specific breakpoints. | 130 // Thread-specific breakpoints. |
| 130 bool SetBreakpoint(const WasmFunction* function, int pc, bool enabled); | 131 bool SetBreakpoint(const WasmFunction* function, int pc, bool enabled); |
| 131 bool GetBreakpoint(const WasmFunction* function, int pc); | 132 bool GetBreakpoint(const WasmFunction* function, int pc); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 WasmInterpreter(WasmInstance* instance, AccountingAllocator* allocator); | 135 WasmInterpreter(WasmInstance* instance, AccountingAllocator* allocator); |
| 135 ~WasmInterpreter(); | 136 ~WasmInterpreter(); |
| 136 | 137 |
| 137 //========================================================================== | 138 //========================================================================== |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 190 private: | 191 private: |
| 191 Zone zone_; | 192 Zone zone_; |
| 192 WasmInterpreterInternals* internals_; | 193 WasmInterpreterInternals* internals_; |
| 193 }; | 194 }; |
| 194 | 195 |
| 195 } // namespace wasm | 196 } // namespace wasm |
| 196 } // namespace internal | 197 } // namespace internal |
| 197 } // namespace v8 | 198 } // namespace v8 |
| 198 | 199 |
| 199 #endif // V8_WASM_INTERPRETER_H_ | 200 #endif // V8_WASM_INTERPRETER_H_ |
| OLD | NEW |