feat(tvix/eval): implement OpPopWith

Change-Id: I752d9428a73f893741746e9d5b79e8d8d570bb81
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6219
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2022-08-15 00:38:30 +03:00 committed by tazjin
parent 5a497cdf1c
commit 19878c5fef
2 changed files with 4 additions and 0 deletions

View file

@ -54,6 +54,7 @@ pub enum OpCode {
// `with`-handling
OpPushWith(usize),
OpPopWith,
// Lists
OpList(usize),

View file

@ -282,6 +282,9 @@ impl VM {
}
OpCode::OpPushWith(idx) => self.with_stack.push(idx),
OpCode::OpPopWith => {
self.with_stack.pop();
}
}
#[cfg(feature = "disassembler")]