initial interpreter commit

This commit is contained in:
Svyatoslav Nikolsky
2017-04-21 14:35:12 +03:00
parent afb5b8d523
commit 0eb881f487
14 changed files with 2195 additions and 4 deletions

View File

@ -199,7 +199,7 @@ pub enum Opcode {
I32Or,
I32Xor,
I32Shl,
I32ShlS,
I32ShrS,
I32ShrU,
I32Rotl,
I32Rotr,
@ -485,7 +485,7 @@ impl Deserialize for Opcode {
0x72 => I32Or,
0x73 => I32Xor,
0x74 => I32Shl,
0x75 => I32ShlS,
0x75 => I32ShrS,
0x76 => I32ShrU,
0x77 => I32Rotl,
0x78 => I32Rotr,
@ -805,7 +805,7 @@ impl Serialize for Opcode {
I32Or => op!(writer, 0x72),
I32Xor => op!(writer, 0x73),
I32Shl => op!(writer, 0x74),
I32ShlS => op!(writer, 0x75),
I32ShrS => op!(writer, 0x75),
I32ShrU => op!(writer, 0x76),
I32Rotl => op!(writer, 0x77),
I32Rotr => op!(writer, 0x78),