summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index cc2070eb2..0ed4f27bd 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1241,6 +1241,13 @@ public:
Table() { name = Name::fromInt(0); }
bool hasMax() { return max != kUnlimitedSize; }
+ void clear() {
+ exists = false;
+ name = "";
+ initial = 0;
+ max = kMaxSize;
+ segments.clear();
+ }
};
class Memory : public Importable {
@@ -1284,6 +1291,14 @@ public:
Memory() { name = Name::fromInt(0); }
bool hasMax() { return max != kUnlimitedSize; }
+ void clear() {
+ exists = false;
+ name = "";
+ initial = 0;
+ max = kMaxSize;
+ segments.clear();
+ shared = false;
+ }
};
class Global : public Importable {