diff options
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r-- | tvix/eval/src/vm.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs index 6de9cd03c49c..a74051a64975 100644 --- a/tvix/eval/src/vm.rs +++ b/tvix/eval/src/vm.rs @@ -6,7 +6,7 @@ use std::rc::Rc; use crate::{ chunk::Chunk, errors::{ErrorKind, EvalResult}, - opcode::OpCode, + opcode::{JumpOffset, OpCode}, value::{Closure, Lambda, NixAttrs, NixList, Value}, }; @@ -266,23 +266,23 @@ impl VM { OpCode::OpInterpolate(count) => self.run_interpolate(count)?, - OpCode::OpJump(offset) => { + OpCode::OpJump(JumpOffset(offset)) => { self.frame_mut().ip += offset; } - OpCode::OpJumpIfTrue(offset) => { + OpCode::OpJumpIfTrue(JumpOffset(offset)) => { if self.peek(0).as_bool()? { self.frame_mut().ip += offset; } } - OpCode::OpJumpIfFalse(offset) => { + OpCode::OpJumpIfFalse(JumpOffset(offset)) => { if !self.peek(0).as_bool()? { self.frame_mut().ip += offset; } } - OpCode::OpJumpIfNotFound(offset) => { + OpCode::OpJumpIfNotFound(JumpOffset(offset)) => { if matches!(self.peek(0), Value::AttrNotFound) { self.pop(); self.frame_mut().ip += offset; |