store integer const instructions as words

This commit is contained in:
Ilya Rezvov
2018-03-03 10:20:02 -08:00
parent b9e03584dd
commit c09397539f
2 changed files with 19 additions and 4 deletions
+3 -2
View File
@@ -37,6 +37,7 @@ module Language.Wasm.Structure (
) where
import Numeric.Natural (Natural)
import Data.Word (Word32, Word64)
import qualified Data.ByteString.Lazy as LBS
import qualified Data.Text.Lazy as TL
@@ -142,8 +143,8 @@ data Instruction =
| CurrentMemory
| GrowMemory
-- Numeric instructions
| I32Const Integer
| I64Const Integer
| I32Const Word32
| I64Const Word64
| F32Const Float
| F64Const Double
| IUnOp BitSize IUnOp