Add tuple unpacking optimization

This commit is contained in:
coolreader18
2019-08-04 01:22:51 -05:00
parent b48f0c2a8b
commit 772460ea7f
3 changed files with 52 additions and 30 deletions

View File

@@ -219,6 +219,9 @@ pub enum Instruction {
spec: String,
},
PopException,
Reverse {
amount: usize,
},
}
use self::Instruction::*;
@@ -438,6 +441,7 @@ impl Instruction {
Unpack => w!(Unpack),
FormatValue { spec, .. } => w!(FormatValue, spec), // TODO: write conversion
PopException => w!(PopException),
Reverse { amount } => w!(Reverse, amount),
}
}
}