summaryrefslogtreecommitdiff
path: root/src/wasm-binary-writer.c
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-01-05 11:47:05 -0800
committerBen Smith <binji@chromium.org>2016-01-05 11:50:20 -0800
commit519b49121bf028d8646a78e2621c3934fc92c095 (patch)
tree1b335a7e7ea4443ae4ff42858403174db6951fd6 /src/wasm-binary-writer.c
parentd813f8351f17e8be44acd77127e9a6b8e1a69105 (diff)
downloadwabt-519b49121bf028d8646a78e2621c3934fc92c095.tar.gz
wabt-519b49121bf028d8646a78e2621c3934fc92c095.tar.bz2
wabt-519b49121bf028d8646a78e2621c3934fc92c095.zip
Remove STORE_WRAP and LOAD_EXTEND expr nodes
They were copied as token types from the spec repo's parser, but they were never treated distinctly. They don't provide any additional information. Also, the spec repo doesn't reference them anymore anyway.
Diffstat (limited to 'src/wasm-binary-writer.c')
-rw-r--r--src/wasm-binary-writer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wasm-binary-writer.c b/src/wasm-binary-writer.c
index a62b668e..16c53095 100644
--- a/src/wasm-binary-writer.c
+++ b/src/wasm-binary-writer.c
@@ -838,8 +838,7 @@ static void write_expr(WasmWriteContext* ctx,
write_expr(ctx, module, func, expr->if_else.true_);
write_expr(ctx, module, func, expr->if_else.false_);
break;
- case WASM_EXPR_TYPE_LOAD:
- case WASM_EXPR_TYPE_LOAD_EXTEND: {
+ case WASM_EXPR_TYPE_LOAD: {
/* Access byte: 0bAaao0000
A = Alignment. If set, access is unaligned
a = Atomicity. 0 = None, 1 = SeqCst, 2 = Acq, 3 = Rel
@@ -897,8 +896,7 @@ static void write_expr(WasmWriteContext* ctx,
write_expr(ctx, module, func, expr->set_local.expr);
break;
}
- case WASM_EXPR_TYPE_STORE:
- case WASM_EXPR_TYPE_STORE_WRAP: {
+ case WASM_EXPR_TYPE_STORE: {
/* See LOAD for format of memory access byte */
out_opcode(ws, s_mem_opcodes[expr->store.op.op_type]);
uint8_t access = 0;