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/wasm-features.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/wasm-features.h') diff --git a/src/wasm-features.h b/src/wasm-features.h index 56436bd6a..6e74e0b29 100644 --- a/src/wasm-features.h +++ b/src/wasm-features.h @@ -37,7 +37,8 @@ struct FeatureSet { ReferenceTypes = 1 << 8, Multivalue = 1 << 9, GC = 1 << 10, - All = (1 << 11) - 1 + Memory64 = 1 << 11, + All = (1 << 12) - 1 }; static std::string toString(Feature f) { @@ -64,6 +65,8 @@ struct FeatureSet { return "multivalue"; case GC: return "gc"; + case Memory64: + return "memory64"; default: WASM_UNREACHABLE("unexpected feature"); } @@ -105,6 +108,7 @@ struct FeatureSet { void setReferenceTypes(bool v = true) { set(ReferenceTypes, v); } void setMultivalue(bool v = true) { set(Multivalue, v); } void setGC(bool v = true) { set(GC, v); } + void setMemory64(bool v = true) { set(Memory64, v); } void setAll(bool v = true) { features = v ? All : MVP; } void enable(const FeatureSet& other) { features |= other.features; } -- cgit v1.2.3