refactor(tvix/eval): move disassemble_op to the Chunk structure
Change-Id: Ic6710c609ed647bfa47d673aaf22c4da96c0f319 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6451 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
3cf5c40209
commit
cbf2d2d292
3 changed files with 33 additions and 29 deletions
|
|
@ -10,7 +10,6 @@ use std::rc::Rc;
|
|||
use tabwriter::TabWriter;
|
||||
|
||||
use crate::chunk::Chunk;
|
||||
use crate::disassembler::disassemble_op;
|
||||
use crate::opcode::CodeIdx;
|
||||
use crate::value::Lambda;
|
||||
|
||||
|
|
@ -72,7 +71,7 @@ impl<W: Write> DisassemblingObserver<W> {
|
|||
let width = format!("{:#x}", chunk.code.len() - 1).len();
|
||||
|
||||
for (idx, _) in chunk.code.iter().enumerate() {
|
||||
disassemble_op(&mut self.writer, &self.codemap, chunk, width, CodeIdx(idx));
|
||||
let _ = chunk.disassemble_op(&mut self.writer, &self.codemap, width, CodeIdx(idx));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue