feat(tvix/eval): track source spans for builtin access
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
This commit is contained in:
parent
6cbd580ba5
commit
8033300900
2 changed files with 9 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue