Index: src/wasm/wasm-module.h |
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
index 73819394ce264322b8f75ae66dea462604b0bedd..ada9d8e58f782c498844015a7f6a7813a668b93e 100644 |
--- a/src/wasm/wasm-module.h |
+++ b/src/wasm/wasm-module.h |
@@ -340,6 +340,9 @@ SeqOneByteString* GetWasmBytes(JSObject* wasm); |
// If no debug info exists yet, it is created automatically. |
WasmDebugInfo* GetDebugInfo(JSObject* wasm); |
+// Return the number of functions in the given wasm object. |
+int GetNumberOfFunctions(JSObject* wasm); |
+ |
// 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 |