Skip to content

Commit e5abd45

Browse files
committed
fix jit
1 parent 2e220f9 commit e5abd45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/jit/src/instructions.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,6 @@ impl<'a, 'b> FunctionCompiler<'a, 'b> {
547547
}
548548
}
549549
Instruction::Nop => Ok(()),
550-
Instruction::Pop => {
551-
self.stack.pop();
552-
Ok(())
553-
}
554550
Instruction::PopBlock => {
555551
// TODO: block support
556552
Ok(())
@@ -581,6 +577,10 @@ impl<'a, 'b> FunctionCompiler<'a, 'b> {
581577

582578
Ok(())
583579
}
580+
Instruction::PopTop => {
581+
self.stack.pop();
582+
Ok(())
583+
}
584584
Instruction::Resume { arg: _resume_arg } => {
585585
// TODO: Implement the resume instruction
586586
Ok(())

0 commit comments

Comments
 (0)