Index: src/wasm/wasm-module.h |
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
index 0c3df51d76b4a87a44579c80f2f63137373efe78..74a5b9821f761d63e8e55928322d59b01744d40b 100644 |
--- a/src/wasm/wasm-module.h |
+++ b/src/wasm/wasm-module.h |
@@ -401,6 +401,13 @@ void PopulateFunctionTable(Handle<FixedArray> table, uint32_t table_size, |
Handle<JSObject> CreateCompiledModuleObject(Isolate* isolate, |
Handle<FixedArray> compiled_module); |
+// Assumed to be called with a code object associated to a wasm module instance. |
+// Intended to be called from runtime functions. |
+// Returns undefined if the runtime support was not setup, nullptr if the |
+// instance |
+// was collected, or the instance object owning the Code object |
+Object* GetOwningWasmInstance(Object* undefined, Code* code); |
+ |
namespace testing { |
// Decode, verify, and run the function labeled "main" in the |