| Index: src/wasm/wasm-module.h
|
| diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
|
| index 8fb1198787eed07352d54922400bcc03e9ea1cd9..cc527dfb9ab7c82e64dcf6c0cfd390a7eb17ded4 100644
|
| --- a/src/wasm/wasm-module.h
|
| +++ b/src/wasm/wasm-module.h
|
| @@ -320,6 +320,13 @@ int32_t CompileAndRunWasmModule(Isolate* isolate, const WasmModule* module);
|
| MaybeHandle<String> GetWasmFunctionName(Handle<JSObject> wasm,
|
| uint32_t func_index);
|
|
|
| +// Check whether the given object is a wasm object.
|
| +// This checks the number and type of internal fields, so it's not 100 percent
|
| +// secure. If it turns out that we need more complete checks, we could add a
|
| +// special marker as internal field, which will definitely never occur anywhere
|
| +// else.
|
| +bool IsWasmObject(Handle<JSObject> object);
|
| +
|
| } // namespace wasm
|
| } // namespace internal
|
| } // namespace v8
|
|
|