summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index bece0af8e..7d98302ba 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -1125,6 +1125,15 @@ enum ASTNodes {
I31GetU = 0x1e,
RefI31Shared = 0x1f,
+ // Shared GC Opcodes
+
+ OrderSeqCst = 0x0,
+ OrderAcqRel = 0x1,
+ StructAtomicGet = 0x5c,
+ StructAtomicGetS = 0x5d,
+ StructAtomicGetU = 0x5e,
+ StructAtomicSet = 0x5f,
+
// stringref opcodes
StringConst = 0x82,
@@ -1352,6 +1361,8 @@ public:
void writeField(const Field& field);
+ void writeMemoryOrder(MemoryOrder order);
+
private:
Module* wasm;
BufferWithRandomAccess& o;
@@ -1587,6 +1598,7 @@ public:
Index readMemoryAccess(Address& alignment, Address& offset);
std::tuple<Name, Address, Address> getMemarg();
+ MemoryOrder getMemoryOrder();
[[noreturn]] void throwError(std::string text) {
throw ParseException(text, 0, pos);