Add tuple unpacking optimization

This commit is contained in:
coolreader18 committed 2019-08-04 01:22:51 -05:00
1 parent b48f0c2a8b
commit 772460ea7f
3 files changed
+52 -30

No files matched your search

+4
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),
}
}
}