| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index 620e59c6aa32595b31ce2bb77bb54194277142c4..f7bb458ec5d61410c93dc8d6bc32be9aabf14d85 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -1299,6 +1299,12 @@ bool UpdateWasmModuleMemory(JSObject* object, Address old_start,
|
| return true;
|
| }
|
|
|
| +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,
|
|
|