| Index: src/wasm/wasm-module.cc | 
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc | 
| index 6e79397c26dfa8a4f62ce7c19b622b1f8799c0bd..d621e8b37e3afb6997aaed0b79fe03c502abc1e3 100644 | 
| --- a/src/wasm/wasm-module.cc | 
| +++ b/src/wasm/wasm-module.cc | 
| @@ -1026,6 +1026,12 @@ WasmDebugInfo* GetDebugInfo(JSObject* wasm) { | 
| return *new_info; | 
| } | 
|  | 
| +int GetNumberOfFunctions(JSObject* wasm) { | 
| +  Object* func_names_obj = wasm->GetInternalField(kWasmFunctionNamesArray); | 
| +  // TODO(clemensh): this looks inside an array constructed elsewhere. Refactor. | 
| +  return ByteArray::cast(func_names_obj)->get_int(0); | 
| +} | 
| + | 
| namespace testing { | 
|  | 
| int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, | 
|  |