diff options
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index fe740d56a..5021b6a29 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1532,6 +1532,11 @@ public: // reconstructing the HeapTypes from the Signatures is expensive. std::vector<HeapType> functionTypes; + // Used to make sure the number of imported functions, signatures, and + // declared functions all match up. + Index numFuncImports = 0; + Index numFuncBodies = 0; + void readFunctionSignatures(); HeapType getTypeByIndex(Index index); HeapType getTypeByFunctionIndex(Index index); |