diff options
Diffstat (limited to 'deps/v8/src/wasm/compilation-environment.h')
-rw-r--r-- | deps/v8/src/wasm/compilation-environment.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/deps/v8/src/wasm/compilation-environment.h b/deps/v8/src/wasm/compilation-environment.h index 1df93c8296..07bc8f57bc 100644 --- a/deps/v8/src/wasm/compilation-environment.h +++ b/deps/v8/src/wasm/compilation-environment.h @@ -119,13 +119,17 @@ class CompilationState { void AddCallback(callback_t); bool failed() const; + V8_EXPORT_PRIVATE bool baseline_compilation_finished() const; + V8_EXPORT_PRIVATE bool top_tier_compilation_finished() const; - void OnFinishedUnit(WasmCode*); - void OnFinishedUnits(Vector<WasmCode*>); + // Override {operator delete} to avoid implicit instantiation of {operator + // delete} with {size_t} argument. The {size_t} argument would be incorrect. + void operator delete(void* ptr) { ::operator delete(ptr); } private: + // NativeModule is allowed to call the static {New} method. friend class NativeModule; - friend class WasmCompilationUnit; + CompilationState() = delete; // The CompilationState keeps a {std::weak_ptr} back to the {NativeModule} |