diff options
Diffstat (limited to 'tvix/eval/src/vm/mod.rs')
-rw-r--r-- | tvix/eval/src/vm/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/eval/src/vm/mod.rs b/tvix/eval/src/vm/mod.rs index 9dc1728531e6..e2ff4ea94573 100644 --- a/tvix/eval/src/vm/mod.rs +++ b/tvix/eval/src/vm/mod.rs @@ -699,7 +699,7 @@ impl<'o> VM<'o> { OpCode::OpCall => { let callable = self.stack_pop(); - self.tail_call_value(frame.current_light_span(), Some(frame), callable)?; + self.call_value(frame.current_light_span(), Some(frame), callable)?; // exit this loop and let the outer loop enter the new call return Ok(true); @@ -900,7 +900,7 @@ impl<'o> VM<'o> { Ok(()) } - fn tail_call_value( + fn call_value( &mut self, span: LightSpan, parent: Option<CallFrame>, @@ -908,7 +908,7 @@ impl<'o> VM<'o> { ) -> EvalResult<()> { match callable { Value::Builtin(builtin) => self.call_builtin(span, builtin), - Value::Thunk(thunk) => self.tail_call_value(span, parent, thunk.value().clone()), + Value::Thunk(thunk) => self.call_value(span, parent, thunk.value().clone()), Value::Closure(closure) => { let lambda = closure.lambda(); |