about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/vm.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index c9b09be82b1c..99e2ba91327c 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -13,7 +13,14 @@ use crate::{
 #[cfg(feature = "disassembler")]
 use crate::disassembler::Tracer;
 
+struct CallFrame {
+    lambda: Lambda,
+    ip: usize,
+    stack_offset: usize,
+}
+
 pub struct VM {
+    frames: Vec<CallFrame>,
     ip: usize,
     chunk: Chunk,
     stack: Vec<Value>,
@@ -367,6 +374,7 @@ impl VM {
 
 pub fn run_lambda(lambda: Lambda) -> EvalResult<Value> {
     let mut vm = VM {
+        frames: vec![],
         chunk: Rc::<Chunk>::try_unwrap(lambda.chunk).unwrap(),
         ip: 0,
         stack: vec![],