optimizations up to section 5.8

This commit is contained in:
Mark Thom
2017-03-23 16:55:43 -06:00
parent e1cc5ecfd6
commit 24b60eb2c6
7 changed files with 90 additions and 63 deletions

View File

@@ -88,8 +88,8 @@ impl fmt::Display for ControlInstruction {
match self {
&ControlInstruction::Allocate(num_cells) =>
write!(f, "allocate {}", num_cells),
&ControlInstruction::Call(ref name, ref arity) =>
write!(f, "call {}/{}", name, arity),
&ControlInstruction::Call(ref name, arity, pvs) =>
write!(f, "call {}/{}, {}", name, arity, pvs),
&ControlInstruction::Deallocate =>
write!(f, "deallocate"),
&ControlInstruction::Execute(ref name, arity) =>