diff options
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 34919cc79..c453ad1f5 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1023,7 +1023,7 @@ private: Module* wasm; BufferWithRandomAccess& o; ModuleUtils::BinaryIndexes indexes; - std::unordered_map<Signature, Index> typeIndexes; + std::unordered_map<Signature, Index> typeIndices; std::vector<Signature> types; bool debugInfo = true; @@ -1058,6 +1058,9 @@ class WasmBinaryBuilder { std::set<BinaryConsts::Section> seenSections; + // All signatures present in the type section + std::vector<Signature> signatures; + public: WasmBinaryBuilder(Module& wasm, const std::vector<char>& input) : wasm(wasm), allocator(wasm.allocator), input(input), sourceMap(nullptr), @@ -1106,7 +1109,8 @@ public: Address defaultIfNoMax); void readImports(); - std::vector<FunctionType*> functionTypes; // types of defined functions + // The signatures of each function, given in the function section + std::vector<Signature> functionSignatures; void readFunctionSignatures(); size_t nextLabel; @@ -1133,7 +1137,7 @@ public: void readFunctions(); - std::map<Export*, Index> exportIndexes; + std::map<Export*, Index> exportIndices; std::vector<Export*> exportOrder; void readExports(); |