summaryrefslogtreecommitdiff
path: root/src/wasm-binary-reader.h
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-08-02 14:36:57 -0700
committerBen Smith <binji@chromium.org>2016-09-29 11:37:27 -0700
commitb8793f6aabd4932114674443fd42c3448036044c (patch)
tree4c6da7d69e6ad12be1691e5469b3da42adc96aeb /src/wasm-binary-reader.h
parent47cd3242fee70aedef3a2d595ee23fa2fe0efc28 (diff)
downloadwabt-b8793f6aabd4932114674443fd42c3448036044c.tar.gz
wabt-b8793f6aabd4932114674443fd42c3448036044c.tar.bz2
wabt-b8793f6aabd4932114674443fd42c3448036044c.zip
WIP on stack changes
This is enough to pass the parse tests, not including the roundtrip tests. This change includes the new `drop` and `tee_local` operators, as well as the type-checking for the "full stack machine". The parser has also been updated to allow the new linear text format.
Diffstat (limited to 'src/wasm-binary-reader.h')
-rw-r--r--src/wasm-binary-reader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm-binary-reader.h b/src/wasm-binary-reader.h
index 3571d9cb..d733e470 100644
--- a/src/wasm-binary-reader.h
+++ b/src/wasm-binary-reader.h
@@ -122,6 +122,7 @@ typedef struct WasmBinaryReader {
void* user_data);
WasmResult (*on_compare_expr)(WasmOpcode opcode, void* user_data);
WasmResult (*on_convert_expr)(WasmOpcode opcode, void* user_data);
+ WasmResult (*on_drop_expr)(void* user_data);
WasmResult (*on_else_expr)(void* user_data);
WasmResult (*on_end_expr)(void* user_data);
WasmResult (*on_f32_const_expr)(uint32_t value_bits, void* user_data);
@@ -145,6 +146,7 @@ typedef struct WasmBinaryReader {
uint32_t alignment_log2,
uint32_t offset,
void* user_data);
+ WasmResult (*on_tee_local_expr)(uint32_t local_index, void* user_data);
WasmResult (*on_unary_expr)(WasmOpcode opcode, void* user_data);
WasmResult (*on_unreachable_expr)(void* user_data);
WasmResult (*end_function_body)(uint32_t index, void* user_data);