Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index f5db1f00bb9d85be32bd689dd7ef19f245ba0c6f..fe5092ae80be1ad395424dbaf2d7717991942c8f 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1565,6 +1565,11 @@ void PopulateFunctionTable(Handle<FixedArray> table, uint32_t table_size, |
} |
} |
+bool isAnyFuncType(FunctionSig* sig) { |
+ return sig->return_count() == 0 && sig->parameter_count() == 1 && |
+ sig->GetParam(0) == kAstStmt; |
+} |
+ |
int GetNumberOfFunctions(JSObject* wasm) { |
Object* func_names_obj = wasm->GetInternalField(kWasmFunctionNamesArray); |
// TODO(clemensh): this looks inside an array constructed elsewhere. Refactor. |