summaryrefslogtreecommitdiff
path: root/src/binary-reader.h
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2018-05-27 00:21:38 -0700
committerGitHub <noreply@github.com>2018-05-27 00:21:38 -0700
commit409d61ef5d485ae2ce783968f290050840e87a22 (patch)
treec9c80327c6a4483dcd36c8152a28aab34310511e /src/binary-reader.h
parent7a6308ac5d7e73f174aef9252bcb9f0644f4dac8 (diff)
downloadwabt-409d61ef5d485ae2ce783968f290050840e87a22.tar.gz
wabt-409d61ef5d485ae2ce783968f290050840e87a22.tar.bz2
wabt-409d61ef5d485ae2ce783968f290050840e87a22.zip
Update spec tests; rename {grow,current}_memory (#849)
`grow_memory` -> `memory.grow` `current_memory` -> `memory.size` This could have been a smaller change, but I took the opportunity to rename the Token types, Expr types, and callback functions too. Many of these are sorted alphabetically, so I resorted based on their new names.
Diffstat (limited to 'src/binary-reader.h')
-rw-r--r--src/binary-reader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/binary-reader.h b/src/binary-reader.h
index d9a9a86f..a22b9e62 100644
--- a/src/binary-reader.h
+++ b/src/binary-reader.h
@@ -213,7 +213,6 @@ class BinaryReaderDelegate {
virtual Result OnCatchExpr() = 0;
virtual Result OnCompareExpr(Opcode opcode) = 0;
virtual Result OnConvertExpr(Opcode opcode) = 0;
- virtual Result OnCurrentMemoryExpr() = 0;
virtual Result OnDropExpr() = 0;
virtual Result OnElseExpr() = 0;
virtual Result OnEndExpr() = 0;
@@ -223,7 +222,6 @@ class BinaryReaderDelegate {
virtual Result OnV128ConstExpr(v128 value_bits) = 0;
virtual Result OnGetGlobalExpr(Index global_index) = 0;
virtual Result OnGetLocalExpr(Index local_index) = 0;
- virtual Result OnGrowMemoryExpr() = 0;
virtual Result OnI32ConstExpr(uint32_t value) = 0;
virtual Result OnI64ConstExpr(uint64_t value) = 0;
virtual Result OnIfExpr(Index num_types, Type* sig_types) = 0;
@@ -234,6 +232,8 @@ class BinaryReaderDelegate {
uint32_t alignment_log2,
Address offset) = 0;
virtual Result OnLoopExpr(Index num_types, Type* sig_types) = 0;
+ virtual Result OnMemoryGrowExpr() = 0;
+ virtual Result OnMemorySizeExpr() = 0;
virtual Result OnNopExpr() = 0;
virtual Result OnRethrowExpr() = 0;
virtual Result OnReturnExpr() = 0;