@@ -1569,16 +1569,17 @@ public virtual void SaveRegisters(StreamWriter writer, ISet<Register> registers)
1569
1569
{
1570
1570
var set = SavingRegisters ( registers ) . ToImmutableSortedSet ( ) ;
1571
1571
foreach ( var r in set ) {
1572
- r . Save ( writer , null , false , 0 ) ;
1572
+ r . Save ( writer , null , null , 0 ) ;
1573
1573
}
1574
1574
}
1575
1575
1576
- public virtual void SaveRegisters ( StreamWriter writer , IEnumerable < Variable > variables , bool jump , int tabCount )
1576
+ public virtual void SaveRegisters ( StreamWriter writer , IEnumerable < Variable > variables , Instruction ? instruction ,
1577
+ int tabCount )
1577
1578
{
1578
1579
var dictionary = DistinctRegisters ( variables ) ;
1579
1580
foreach ( var ( register , list ) in dictionary . OrderBy ( p => p . Key ) ) {
1580
1581
var comment = "\t ; " + string . Join ( ',' , list . Select ( v => v . Name ) . ToArray ( ) ) ;
1581
- register . Save ( writer , comment , jump , tabCount ) ;
1582
+ register . Save ( writer , comment , instruction , tabCount ) ;
1582
1583
}
1583
1584
}
1584
1585
@@ -1591,15 +1592,16 @@ public virtual void RestoreRegisters(StreamWriter writer, ISet<Register> registe
1591
1592
1592
1593
protected virtual void RestoreRegister ( StreamWriter writer , Register register , int byteCount )
1593
1594
{
1594
- register . Restore ( writer , null , false , 0 ) ;
1595
+ register . Restore ( writer , null , null , 0 ) ;
1595
1596
}
1596
1597
1597
- public virtual void RestoreRegisters ( StreamWriter writer , IEnumerable < Variable > variables , bool jump , int tabCount )
1598
+ public virtual void RestoreRegisters ( StreamWriter writer , IEnumerable < Variable > variables , Instruction ? instruction ,
1599
+ int tabCount )
1598
1600
{
1599
1601
var dictionary = DistinctRegisters ( variables ) ;
1600
1602
foreach ( var ( register , list ) in dictionary . OrderByDescending ( p => p . Key ) ) {
1601
1603
var comment = "\t ; " + string . Join ( ',' , list . Select ( v => v . Name ) . ToArray ( ) ) ;
1602
- register . Restore ( writer , comment , jump , tabCount ) ;
1604
+ register . Restore ( writer , comment , instruction , tabCount ) ;
1603
1605
}
1604
1606
}
1605
1607
0 commit comments