feat(tvix/eval): implement (compilation) observer trait

This trait will enable library users of tvix-eval to observe internal
happenings of the compilation and runtime processes.

The initial methods of the observer will be called whenever the
compiler emits a chunk.

Change-Id: I668f6c2cfe3d6f4c1a1612c0f293831011768437
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6448
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-09-04 16:51:33 +03:00 committed by tazjin
parent 1fe6cfe5a2
commit 7ae45342df
2 changed files with 37 additions and 0 deletions

View file

@ -3,6 +3,7 @@ mod chunk;
mod compiler;
mod errors;
mod eval;
mod observer;
mod opcode;
mod upvalues;
mod value;