diff options
author | Alon Zakai <azakai@google.com> | 2019-05-03 13:47:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-03 13:47:49 -0700 |
commit | 415e8b37c2e570117b17394d4910ca57fa2d11d8 (patch) | |
tree | ce7ad2486facf0c2ae29e48075e7e77b3cf1821c /src/wasm2js.h | |
parent | 909ac3410093c0b35b3181abcd44b9fb9ceb4781 (diff) | |
download | binaryen-415e8b37c2e570117b17394d4910ca57fa2d11d8.tar.gz binaryen-415e8b37c2e570117b17394d4910ca57fa2d11d8.tar.bz2 binaryen-415e8b37c2e570117b17394d4910ca57fa2d11d8.zip |
wasm2js: optimize loads (#2085)
When loading a boolean, prefer the signed heap (which is more commonly used, and may be faster).
We never use HEAPU32 (HEAP32 is always enough), just remove it.
Diffstat (limited to 'src/wasm2js.h')
-rw-r--r-- | src/wasm2js.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h index e721d3d58..30d694f78 100644 --- a/src/wasm2js.h +++ b/src/wasm2js.h @@ -420,7 +420,6 @@ void Wasm2JSBuilder::addBasics(Ref ast) { addHeap(HEAP32, INT32ARRAY); addHeap(HEAPU8, UINT8ARRAY); addHeap(HEAPU16, UINT16ARRAY); - addHeap(HEAPU32, UINT32ARRAY); addHeap(HEAPF32, FLOAT32ARRAY); addHeap(HEAPF64, FLOAT64ARRAY); // core asm.js imports @@ -1687,7 +1686,6 @@ void Wasm2JSBuilder::addMemoryGrowthFuncs(Ref ast, Module* wasm) { setHeap(HEAP32, INT32ARRAY); setHeap(HEAPU8, UINT8ARRAY); setHeap(HEAPU16, UINT16ARRAY); - setHeap(HEAPU32, UINT32ARRAY); setHeap(HEAPF32, FLOAT32ARRAY); setHeap(HEAPF64, FLOAT64ARRAY); |