snix/tvix/eval/src/vm
Vincent Ambo 3c87687798 refactor(tvix/eval): add SourceCode directly into error types
With this change it's no longer necessary to track the SourceCode
struct separately from the evaluation for error reporting: It's just
stored directly in the errors.

This also ends up resolving an issue in compiler::bindings, where we
cloned the Arc containing file references way too often. In fact those
clones probably compensate for all additional SourceCode clones during
error construction now.

Change-Id: Ice93bf161e61f8ea3d48103435e20c53e6aa8c3a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10986
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2024-02-20 09:18:08 +00:00
..
generators.rs feat(tvix/eval): Box Value::Catchable 2024-02-13 16:49:53 +00:00
macros.rs feat(tvix/eval): Box Value::Catchable 2024-02-13 16:49:53 +00:00
mod.rs refactor(tvix/eval): add SourceCode directly into error types 2024-02-20 09:18:08 +00:00