Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
wast: refactor and cleanup the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Smirnov authored and sbinet committed Sep 17, 2018
1 parent 8612555 commit a2a4ba6
Show file tree
Hide file tree
Showing 3 changed files with 326 additions and 205 deletions.
2 changes: 2 additions & 0 deletions wasm/operators/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ var (
I64Store16 = newOp(0x3d, "i64.store16", []wasm.ValueType{wasm.ValueTypeI64, wasm.ValueTypeI32}, noReturn)
I64Store32 = newOp(0x3e, "i64.store32", []wasm.ValueType{wasm.ValueTypeI64, wasm.ValueTypeI32}, noReturn)

// TODO: rename operations accordingly

CurrentMemory = newOp(0x3f, "memory.size", nil, wasm.ValueTypeI32)
GrowMemory = newOp(0x40, "memory.grow", []wasm.ValueType{wasm.ValueTypeI32}, wasm.ValueTypeI32)
)
Loading

0 comments on commit a2a4ba6

Please sign in to comment.