diff options
Diffstat (limited to 'deps/v8/src/wasm/wasm-interpreter.h')
-rw-r--r-- | deps/v8/src/wasm/wasm-interpreter.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/src/wasm/wasm-interpreter.h b/deps/v8/src/wasm/wasm-interpreter.h index da0ce01835..4eb0675aba 100644 --- a/deps/v8/src/wasm/wasm-interpreter.h +++ b/deps/v8/src/wasm/wasm-interpreter.h @@ -5,6 +5,8 @@ #ifndef V8_WASM_WASM_INTERPRETER_H_ #define V8_WASM_WASM_INTERPRETER_H_ +#include <memory> + #include "src/wasm/wasm-opcodes.h" #include "src/wasm/wasm-value.h" #include "src/zone/zone-containers.h" @@ -131,7 +133,7 @@ class V8_EXPORT_PRIVATE WasmInterpreter { // Stack inspection and modification. pc_t GetBreakpointPc(); - // TODO(clemensh): Make this uint32_t. + // TODO(clemensb): Make this uint32_t. int GetFrameCount(); // The InterpretedFrame is only valid as long as the Thread is paused. FramePtr GetFrame(int index); @@ -170,9 +172,12 @@ class V8_EXPORT_PRIVATE WasmInterpreter { uint32_t ActivationFrameBase(uint32_t activation_id); }; + MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR(WasmInterpreter); + WasmInterpreter(Isolate* isolate, const WasmModule* module, const ModuleWireBytes& wire_bytes, Handle<WasmInstanceObject> instance); + ~WasmInterpreter(); //========================================================================== @@ -214,7 +219,7 @@ class V8_EXPORT_PRIVATE WasmInterpreter { private: Zone zone_; - WasmInterpreterInternals* internals_; + std::unique_ptr<WasmInterpreterInternals> internals_; }; } // namespace wasm |