fmt
This commit is contained in:
@@ -1155,27 +1155,27 @@ fn generate_instruction_preface() -> TokenStream {
|
||||
impl Instruction {
|
||||
#[inline]
|
||||
pub fn registers(&self) -> Vec<RegType> {
|
||||
match self {
|
||||
&Instruction::GetConstant(_, _, r) => vec![r],
|
||||
&Instruction::GetList(_, r) => vec![r],
|
||||
&Instruction::GetPartialString(_, _, r, _) => vec![r],
|
||||
&Instruction::GetStructure(_, _, _, r) => vec![r],
|
||||
&Instruction::GetVariable(r, t) => vec![r, temp_v!(t)],
|
||||
&Instruction::GetValue(r, t) => vec![r, temp_v!(t)],
|
||||
&Instruction::UnifyLocalValue(r) => vec![r],
|
||||
&Instruction::UnifyVariable(r) => vec![r],
|
||||
&Instruction::PutConstant(_, _, r) => vec![r],
|
||||
&Instruction::PutList(_, r) => vec![r],
|
||||
&Instruction::PutPartialString(_, _, r, _) => vec![r],
|
||||
&Instruction::PutStructure(_, _, r) => vec![r],
|
||||
&Instruction::PutValue(r, t) => vec![r, temp_v!(t)],
|
||||
&Instruction::PutVariable(r, t) => vec![r, temp_v!(t)],
|
||||
&Instruction::SetLocalValue(r) => vec![r],
|
||||
&Instruction::SetVariable(r) => vec![r],
|
||||
&Instruction::SetValue(r) => vec![r],
|
||||
&Instruction::GetLevel(r) => vec![r],
|
||||
&Instruction::GetPrevLevel(r) => vec![r],
|
||||
&Instruction::GetCutPoint(r) => vec![r],
|
||||
match *self {
|
||||
Instruction::GetConstant(_, _, r) => vec![r],
|
||||
Instruction::GetList(_, r) => vec![r],
|
||||
Instruction::GetPartialString(_, _, r, _) => vec![r],
|
||||
Instruction::GetStructure(_, _, _, r) => vec![r],
|
||||
Instruction::GetVariable(r, t) => vec![r, temp_v!(t)],
|
||||
Instruction::GetValue(r, t) => vec![r, temp_v!(t)],
|
||||
Instruction::UnifyLocalValue(r) => vec![r],
|
||||
Instruction::UnifyVariable(r) => vec![r],
|
||||
Instruction::PutConstant(_, _, r) => vec![r],
|
||||
Instruction::PutList(_, r) => vec![r],
|
||||
Instruction::PutPartialString(_, _, r, _) => vec![r],
|
||||
Instruction::PutStructure(_, _, r) => vec![r],
|
||||
Instruction::PutValue(r, t) => vec![r, temp_v!(t)],
|
||||
Instruction::PutVariable(r, t) => vec![r, temp_v!(t)],
|
||||
Instruction::SetLocalValue(r) => vec![r],
|
||||
Instruction::SetVariable(r) => vec![r],
|
||||
Instruction::SetValue(r) => vec![r],
|
||||
Instruction::GetLevel(r) => vec![r],
|
||||
Instruction::GetPrevLevel(r) => vec![r],
|
||||
Instruction::GetCutPoint(r) => vec![r],
|
||||
_ => vec![],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user