summaryrefslogtreecommitdiff
path: root/src/passes/RemoveNonJSOps.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-06-22 07:00:13 -0700
committerGitHub <noreply@github.com>2020-06-22 07:00:13 -0700
commit721f15831ca547de98992f9ce6158d822b94d167 (patch)
tree6e898353d04323ff07a687dc3e4456507796feea /src/passes/RemoveNonJSOps.cpp
parent711f8cb0ccc0de434a86c6c704acd5a13848f4db (diff)
downloadbinaryen-721f15831ca547de98992f9ce6158d822b94d167.tar.gz
binaryen-721f15831ca547de98992f9ce6158d822b94d167.tar.bz2
binaryen-721f15831ca547de98992f9ce6158d822b94d167.zip
wasm2js: Bulk memory support (#2923)
Adds a special helper functions for data.drop etc., as unlike most wasm instructions these are too big to emit inline. Track passive segments at runtime in var memorySegments whose indexes are the segment indexes. Emit var bufferView even if the memory exists even without memory segments, as we do still need the view in order to operate on it. Also adds a few constants for atomics that will be useful in future PRs (as this PR updates the constant lists anyhow).
Diffstat (limited to 'src/passes/RemoveNonJSOps.cpp')
-rw-r--r--src/passes/RemoveNonJSOps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/RemoveNonJSOps.cpp b/src/passes/RemoveNonJSOps.cpp
index 1866877c0..3c1947725 100644
--- a/src/passes/RemoveNonJSOps.cpp
+++ b/src/passes/RemoveNonJSOps.cpp
@@ -52,7 +52,7 @@ struct RemoveNonJSOpsPass : public WalkerPass<PostWalker<RemoveNonJSOpsPass>> {
void doWalkModule(Module* module) {
// Intrinsics may use scratch memory, ensure it.
- ABI::wasm2js::ensureScratchMemoryHelpers(module);
+ ABI::wasm2js::ensureHelpers(module);
// Discover all of the intrinsics that we need to inject, lowering all
// operations to intrinsic calls while we're at it.