summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-04-05 19:48:54 -0700
committerGitHub <noreply@github.com>2019-04-05 19:48:54 -0700
commit37443aef8c22f100dc59e81aff6af5a252f3217d (patch)
treeae68bcc8b6bbc4f2b7fdd1f50349b9980e59f10f /src/wasm2js.h
parent5b24f039ba1f55520a61f6dd6bb8ca46556c592b (diff)
downloadbinaryen-37443aef8c22f100dc59e81aff6af5a252f3217d.tar.gz
binaryen-37443aef8c22f100dc59e81aff6af5a252f3217d.tar.bz2
binaryen-37443aef8c22f100dc59e81aff6af5a252f3217d.zip
Passive segments (#1976)
Adds support for the bulk memory proposal's passive segments. Uses a new (data passive ...) s-expression syntax to mark sections as passive.
Diffstat (limited to 'src/wasm2js.h')
-rw-r--r--src/wasm2js.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h
index 080315490..518a8037b 100644
--- a/src/wasm2js.h
+++ b/src/wasm2js.h
@@ -525,6 +525,7 @@ void Wasm2JSBuilder::addEsmExportsAndInstantiate(Ref ast, Module *wasm, Name fun
flattenAppend(ast, ValueBuilder::makeName(name));
}
for (auto& seg : wasm->memory.segments) {
+ assert(!seg.isPassive && "passive segments not implemented yet");
std::ostringstream out;
out << "assign" << funcName.str << "("
<< constOffset(seg)