summaryrefslogtreecommitdiff
path: root/src/binary-reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.h')
-rw-r--r--src/binary-reader.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/binary-reader.h b/src/binary-reader.h
index 743103e9..98334440 100644
--- a/src/binary-reader.h
+++ b/src/binary-reader.h
@@ -199,9 +199,9 @@ class BinaryReaderDelegate {
virtual Result OnAtomicWaitExpr(Opcode opcode,
uint32_t alignment_log2,
Address offset) = 0;
- virtual Result OnAtomicWakeExpr(Opcode opcode,
- uint32_t alignment_log2,
- Address offset) = 0;
+ virtual Result OnAtomicNotifyExpr(Opcode opcode,
+ uint32_t alignment_log2,
+ Address offset) = 0;
virtual Result OnBinaryExpr(Opcode opcode) = 0;
virtual Result OnBlockExpr(Type sig_type) = 0;
virtual Result OnBrExpr(Index depth) = 0;
@@ -221,8 +221,8 @@ class BinaryReaderDelegate {
virtual Result OnF32ConstExpr(uint32_t value_bits) = 0;
virtual Result OnF64ConstExpr(uint64_t value_bits) = 0;
virtual Result OnV128ConstExpr(v128 value_bits) = 0;
- virtual Result OnGetGlobalExpr(Index global_index) = 0;
- virtual Result OnGetLocalExpr(Index local_index) = 0;
+ virtual Result OnGlobalGetExpr(Index global_index) = 0;
+ virtual Result OnGlobalSetExpr(Index global_index) = 0;
virtual Result OnI32ConstExpr(uint32_t value) = 0;
virtual Result OnI64ConstExpr(uint64_t value) = 0;
virtual Result OnIfExpr(Type sig_type) = 0;
@@ -230,6 +230,9 @@ class BinaryReaderDelegate {
virtual Result OnLoadExpr(Opcode opcode,
uint32_t alignment_log2,
Address offset) = 0;
+ virtual Result OnLocalGetExpr(Index local_index) = 0;
+ virtual Result OnLocalSetExpr(Index local_index) = 0;
+ virtual Result OnLocalTeeExpr(Index local_index) = 0;
virtual Result OnLoopExpr(Type sig_type) = 0;
virtual Result OnMemoryCopyExpr() = 0;
virtual Result OnMemoryDropExpr(Index segment_index) = 0;
@@ -246,12 +249,9 @@ class BinaryReaderDelegate {
virtual Result OnReturnCallExpr(Index func_index) = 0;
virtual Result OnReturnCallIndirectExpr(Index sig_index) = 0;
virtual Result OnSelectExpr() = 0;
- virtual Result OnSetGlobalExpr(Index global_index) = 0;
- virtual Result OnSetLocalExpr(Index local_index) = 0;
virtual Result OnStoreExpr(Opcode opcode,
uint32_t alignment_log2,
Address offset) = 0;
- virtual Result OnTeeLocalExpr(Index local_index) = 0;
virtual Result OnThrowExpr(Index except_index) = 0;
virtual Result OnTryExpr(Type sig_type) = 0;
@@ -268,7 +268,9 @@ class BinaryReaderDelegate {
/* Elem section */
virtual Result BeginElemSection(Offset size) = 0;
virtual Result OnElemSegmentCount(Index count) = 0;
- virtual Result BeginElemSegment(Index index, Index table_index, bool passive) = 0;
+ virtual Result BeginElemSegment(Index index,
+ Index table_index,
+ bool passive) = 0;
virtual Result BeginElemSegmentInitExpr(Index index) = 0;
virtual Result EndElemSegmentInitExpr(Index index) = 0;
virtual Result OnElemSegmentFunctionIndexCount(Index index, Index count) = 0;
@@ -280,7 +282,9 @@ class BinaryReaderDelegate {
/* Data section */
virtual Result BeginDataSection(Offset size) = 0;
virtual Result OnDataSegmentCount(Index count) = 0;
- virtual Result BeginDataSegment(Index index, Index memory_index, bool passive) = 0;
+ virtual Result BeginDataSegment(Index index,
+ Index memory_index,
+ bool passive) = 0;
virtual Result BeginDataSegmentInitExpr(Index index) = 0;
virtual Result EndDataSegmentInitExpr(Index index) = 0;
virtual Result OnDataSegmentData(Index index,
@@ -373,7 +377,7 @@ class BinaryReaderDelegate {
virtual Result OnInitExprF32ConstExpr(Index index, uint32_t value) = 0;
virtual Result OnInitExprF64ConstExpr(Index index, uint64_t value) = 0;
virtual Result OnInitExprV128ConstExpr(Index index, v128 value) = 0;
- virtual Result OnInitExprGetGlobalExpr(Index index, Index global_index) = 0;
+ virtual Result OnInitExprGlobalGetExpr(Index index, Index global_index) = 0;
virtual Result OnInitExprI32ConstExpr(Index index, uint32_t value) = 0;
virtual Result OnInitExprI64ConstExpr(Index index, uint64_t value) = 0;