From 3b4cb935f83c7fabacbf61146e56dabc0d65a441 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Fri, 18 Sep 2020 15:50:25 -0700 Subject: Initial implementation of "Memory64" proposal (#3130) Also includes a lot of new spec tests that eventually need to go into the spec repo --- src/tools/tool-options.h | 1 + src/tools/wasm2js.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/tool-options.h b/src/tools/tool-options.h index 2e7158b34..83d5b38d7 100644 --- a/src/tools/tool-options.h +++ b/src/tools/tool-options.h @@ -88,6 +88,7 @@ struct ToolOptions : public Options { .addFeature(FeatureSet::ReferenceTypes, "reference types") .addFeature(FeatureSet::Multivalue, "multivalue functions") .addFeature(FeatureSet::GC, "garbage collection") + .addFeature(FeatureSet::Memory64, "memory64") .add("--no-validation", "-n", "Disables validation, assumes inputs are correct", diff --git a/src/tools/wasm2js.cpp b/src/tools/wasm2js.cpp index 68334708f..95d93cdbd 100644 --- a/src/tools/wasm2js.cpp +++ b/src/tools/wasm2js.cpp @@ -810,7 +810,7 @@ void AssertionEmitter::emit() { } )"; - Builder wasmBuilder(sexpBuilder.getAllocator()); + Builder wasmBuilder(sexpBuilder.getAllocator(), sexpBuilder.getModule()); Name asmModule = std::string("ret") + ASM_FUNC.str; for (size_t i = 0; i < root.size(); ++i) { Element& e = *root[i]; -- cgit v1.2.3