about summary refs log tree commit diff
path: root/tvix/eval/src/chunk.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-01T16·24+0300
committertazjin <tazjin@tvl.su>2022-09-07T20·04+0000
commit80333009008b8a6ee644b7504b65f4c337418a3b (patch)
tree57d8a7dd85ffbe2024c82512d23eda99d769fe18 /tvix/eval/src/chunk.rs
parent6cbd580ba53885d6c4dff1e3a81406604ae13f3a (diff)
feat(tvix/eval): track source spans for builtin access r/4736
As of this commit, the source spans of all emitted bytecode are fully
tracked.

Change-Id: I4c83deee0fc3f5e6fd6acad5a39047aec693b388
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6403
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/chunk.rs')
-rw-r--r--tvix/eval/src/chunk.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/tvix/eval/src/chunk.rs b/tvix/eval/src/chunk.rs
index fbb9f7c37fec..f3df51f31600 100644
--- a/tvix/eval/src/chunk.rs
+++ b/tvix/eval/src/chunk.rs
@@ -29,12 +29,6 @@ pub struct Chunk {
 }
 
 impl Chunk {
-    pub fn push_op_old(&mut self, data: OpCode) -> CodeIdx {
-        let idx = self.code.len();
-        self.code.push(data);
-        CodeIdx(idx)
-    }
-
     pub fn push_op(&mut self, data: OpCode, span: codemap::Span) -> CodeIdx {
         let idx = self.code.len();
         self.code.push(data);