Add not_implemented_{un,bin} functions, cleanup unused "not implemented" functions

These are specifically functions for the BaseObjInst:: that need some
kind of "not implemented" function for re-use.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-09-24 12:46:45 -07:00
parent ef83796ccc
commit a5d106bdfd
3 changed files with 42 additions and 64 deletions

View File

@@ -375,7 +375,7 @@ impl Vm {
}
Op::Return => {
let return_value = self.pop();
let old_frame = self.frames.pop().unwrap();
let old_frame = self.pop_frame();
// stack_base is always going to be <= current stack size
self.stack
.resize_with(old_frame.stack_base, || unreachable!());