Commit 0b4e0f85 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[api] Deprecate obsolete wasm methods

The API was marked to be depracated soon in https://crrev.com/c/1847366.
Chromium switched to the new APIs in https://crrev.com/c/1855822.

R=ulan@chromium.org

Bug: v8:9810
Change-Id: I0befb06e180b57ec21ca4c2d56fa8e10a36b0d9e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1856001Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64252}
parent 4391203d
...@@ -4641,22 +4641,22 @@ class V8_EXPORT WasmModuleObject : public Object { ...@@ -4641,22 +4641,22 @@ class V8_EXPORT WasmModuleObject : public Object {
* An opaque, native heap object for transferring wasm modules. It * An opaque, native heap object for transferring wasm modules. It
* supports move semantics, and does not support copy semantics. * supports move semantics, and does not support copy semantics.
*/ */
using TransferrableModule V8_DEPRECATE_SOON( using TransferrableModule V8_DEPRECATED("Use CompiledWasmModule directly") =
"Use CompiledWasmModule directly") = CompiledWasmModule; CompiledWasmModule;
/** /**
* Get an in-memory, non-persistable, and context-independent (meaning, * Get an in-memory, non-persistable, and context-independent (meaning,
* suitable for transfer to another Isolate and Context) representation * suitable for transfer to another Isolate and Context) representation
* of this wasm compiled module. * of this wasm compiled module.
*/ */
V8_DEPRECATE_SOON("Use GetCompiledModule") V8_DEPRECATED("Use GetCompiledModule")
TransferrableModule GetTransferrableModule(); TransferrableModule GetTransferrableModule();
/** /**
* Efficiently re-create a WasmModuleObject, without recompiling, from * Efficiently re-create a WasmModuleObject, without recompiling, from
* a TransferrableModule. * a TransferrableModule.
*/ */
V8_DEPRECATE_SOON("Use FromCompiledModule") V8_DEPRECATED("Use FromCompiledModule")
static MaybeLocal<WasmModuleObject> FromTransferrableModule( static MaybeLocal<WasmModuleObject> FromTransferrableModule(
Isolate* isolate, const TransferrableModule&); Isolate* isolate, const TransferrableModule&);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment