From 1005b1267f70a5a7cf7a8774af6c12d813464720 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 20 Oct 2017 19:38:31 -0700 Subject: Emit binary function index in comment in text format, for convenience (#1232) --- src/wasm-binary.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index bf1cb14d6..bcf6cf45f 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -696,8 +696,8 @@ public: void writeExports(); void writeDataSegments(); - std::map mappedFunctions; // name of the Function => index. first imports, then internals - std::map mappedGlobals; // name of the Global => index. first imported globals, then internal globals + std::unordered_map mappedFunctions; // name of the Function => index. first imports, then internals + std::unordered_map mappedGlobals; // name of the Global => index. first imported globals, then internal globals uint32_t getFunctionIndex(Name name); uint32_t getGlobalIndex(Name name); -- cgit v1.2.3