summaryrefslogtreecommitdiff
path: root/crates/parser/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/parser/src')
-rw-r--r--crates/parser/src/conversion.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs
index 82ceddd..c80a7fc 100644
--- a/crates/parser/src/conversion.rs
+++ b/crates/parser/src/conversion.rs
@@ -158,6 +158,10 @@ pub fn process_operators<'a>(
GlobalSet { global_index } => Instruction::GlobalSet(global_index),
MemorySize { .. } => Instruction::MemorySize,
MemoryGrow { .. } => Instruction::MemoryGrow,
+ I32Const { value } => Instruction::I32Const(value),
+ I64Const { value } => Instruction::I64Const(value),
+ F32Const { value } => Instruction::F32Const(f32::from_bits(value.bits())), // TODO: check if this is correct
+ F64Const { value } => Instruction::F64Const(f64::from_bits(value.bits())), // TODO: check if this is correct
I32Load { memarg } => Instruction::I32Load(convert_memarg(memarg)),
I64Load { memarg } => Instruction::I64Load(convert_memarg(memarg)),
F32Load { memarg } => Instruction::F32Load(convert_memarg(memarg)),