diff options
| author | Henry <mail@henrygressmann.de> | 2023-12-25 14:36:24 +0100 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2023-12-25 14:37:18 +0100 |
| commit | d20e7889d608522e6fd57ed9691f78c53b02e3e7 (patch) | |
| tree | 863c350ef7d0f8d172bb800e717c929c6a338a27 /crates/parser/src/conversion.rs | |
| parent | 4ee0bacbf79c41661b24e6cb9e4420cca33dc039 (diff) | |
feat: improve func type resolution, int ops
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/conversion.rs')
| -rw-r--r-- | crates/parser/src/conversion.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs index 2c78e67..4053740 100644 --- a/crates/parser/src/conversion.rs +++ b/crates/parser/src/conversion.rs @@ -407,7 +407,8 @@ pub fn process_operators<'a>( .. } => Instruction::CallIndirect(type_index, table_index), Drop => Instruction::Drop, - Select => Instruction::Select, + Select => Instruction::Select(None), + TypedSelect { ty } => Instruction::Select(Some(convert_valtype(&ty))), LocalGet { local_index } => Instruction::LocalGet(local_index), LocalSet { local_index } => Instruction::LocalSet(local_index), LocalTee { local_index } => Instruction::LocalTee(local_index), @@ -547,6 +548,8 @@ pub fn process_operators<'a>( I32TruncF64U => Instruction::I32TruncF64U, I64ExtendI32S => Instruction::I64ExtendI32S, I64ExtendI32U => Instruction::I64ExtendI32U, + I32Extend8S => Instruction::I32Extend8S, + I32Extend16S => Instruction::I32Extend16S, I64TruncF32S => Instruction::I64TruncF32S, I64TruncF32U => Instruction::I64TruncF32U, I64TruncF64S => Instruction::I64TruncF64S, |
