diff options
author | Vincent Ambo <mail@tazj.in> | 2022-10-10T23·24+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-10-11T00·07+0000 |
commit | 76e0c37b9eb9e2ddf6cedbbf0b5a1d2a603de0c4 (patch) | |
tree | 8bfaf0ab71f284ea022f824b26f22d7cb9a5b123 /tvix/eval/src/vm.rs | |
parent | 8e122574c238ec18644fbe49d18a8d204fff66e0 (diff) |
feat(tvix/eval): observe stack after exiting call frames/builtins r/5099
Change-Id: I1937d37551503a0b6bb0ac899d067302e4791e5f Reviewed-on: https://cl.tvl.fyi/c/depot/+/6939 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r-- | tvix/eval/src/vm.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs index 9a8d07ea63eb..daee8c886c84 100644 --- a/tvix/eval/src/vm.rs +++ b/tvix/eval/src/vm.rs @@ -336,7 +336,8 @@ impl<'o> VM<'o> { self.frames.push(frame); let result = self.run(); - self.observer.observe_exit_frame(self.frames.len() + 1); + self.observer + .observe_exit_frame(self.frames.len() + 1, &self.stack); result } @@ -855,7 +856,8 @@ impl<'o> VM<'o> { let arg = self.pop(); let result = fallible!(self, builtin.apply(self, arg)); - self.observer.observe_exit_builtin(builtin_name); + self.observer + .observe_exit_builtin(builtin_name, &self.stack); self.push(result); |