about summary refs log tree commit diff
path: root/tvix/eval/src/vm/generators.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-03-11T20·19+0300
committertazjin <tazjin@tvl.su>2023-03-13T20·30+0000
commitcc59cbf3e27efb01a2cf96dcd5d2a7be1bca9540 (patch)
treee62ff483afdd3d18a5d90b06fe87b711b9c97aa2 /tvix/eval/src/vm/generators.rs
parent5d9bfd7735373cde72ebac4be4a05f1c846c13ba (diff)
refactor(tvix/eval): rename VM::tail_call_value -> VM::call_value r/5984
The name of this was not accurate anymore after all the recent
shuffling, as noted by amjoseph. Conceptual tail calls here only occur
for Nix bytecode calling Nix bytecode, but things like a builtin call
actually push a new native frame.

Change-Id: I1dea8c9663daf86482b8c7b5a23133254b5ca321
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8256
Tested-by: BuildkiteCI
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tvix/eval/src/vm/generators.rs')
-rw-r--r--tvix/eval/src/vm/generators.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/vm/generators.rs b/tvix/eval/src/vm/generators.rs
index 65b7287a69..cddb18a406 100644
--- a/tvix/eval/src/vm/generators.rs
+++ b/tvix/eval/src/vm/generators.rs
@@ -355,7 +355,7 @@ impl<'o> VM<'o> {
 
                         GeneratorRequest::Call(callable) => {
                             self.reenqueue_generator(name, span.clone(), generator);
-                            self.tail_call_value(span, None, callable)?;
+                            self.call_value(span, None, callable)?;
                             return Ok(false);
                         }