diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/compiler/mod.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs index 688013f439cb..b72a7c7eda77 100644 --- a/tvix/eval/src/compiler/mod.rs +++ b/tvix/eval/src/compiler/mod.rs @@ -469,7 +469,7 @@ impl Compiler<'_> { self.compile(slot, from.expr().unwrap()); self.emit_force(); self.emit_literal_ident(&ident); - self.push_op_old(OpCode::OpAttrsSelect); + self.push_op(OpCode::OpAttrsSelect, &ident); } } @@ -505,7 +505,10 @@ impl Compiler<'_> { // otherwise we need to emit an instruction to construct // the attribute path. if key_count > 1 { - self.push_op_old(OpCode::OpAttrPath(Count(key_count))); + self.push_op( + OpCode::OpAttrPath(Count(key_count)), + &kv.attrpath().unwrap(), + ); } // The value is just compiled as normal so that its @@ -514,7 +517,7 @@ impl Compiler<'_> { self.compile(slot, kv.value().unwrap()); } - self.push_op_old(OpCode::OpAttrs(Count(count))); + self.push_op(OpCode::OpAttrs(Count(count)), &node); } fn compile_select(&mut self, slot: Option<LocalIdx>, node: ast::Select) { |