diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2026-08-02 18:10:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-02 18:10:24 +0200 |
| commit | b6a6cefd5bd8e2e488b03024c18de3cd576d3046 (patch) | |
| tree | bda5240a18296d258ffa5a142a1f6c9e7bdc0627 /crates/parser/src/optimize.rs | |
| parent | d848efecb9678a3b083eb363a1c8508b812255c0 (diff) | |
feat: typed function references (#49)
Signed-off-by: Henry <mail@henrygressmann.de>
---------
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/optimize.rs')
| -rw-r--r-- | crates/parser/src/optimize.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/parser/src/optimize.rs b/crates/parser/src/optimize.rs index 80dfa0d..dcb7568 100644 --- a/crates/parser/src/optimize.rs +++ b/crates/parser/src/optimize.rs @@ -856,6 +856,8 @@ fn instruction_target_mut(instr: &mut Instruction) -> Option<&mut u32> { | Instruction::JumpIfNonZero32(ip) | Instruction::JumpIfZero64(ip) | Instruction::JumpIfNonZero64(ip) + | Instruction::JumpIfRefNull(ip) + | Instruction::JumpIfRefNonNull(ip) | Instruction::JumpCmpStackConst32 { target_ip: ip, .. } | Instruction::JumpCmpStackConst64 { target_ip: ip, .. } | Instruction::JumpIfLocalZero32 { target_ip: ip, .. } @@ -906,6 +908,7 @@ fn is_unconditional_terminator(instr: Instruction) -> bool { | Instruction::ReturnCall(_) | Instruction::ReturnCallSelf | Instruction::ReturnCallIndirect(..) + | Instruction::ReturnCallRef(_) ) } |
