|
@@ -377,11 +377,13 @@ Unit AoptObj;
|
|
End;
|
|
End;
|
|
|
|
|
|
Function TPaiProp.RegInSequence(Reg, which: TRegister): Boolean;
|
|
Function TPaiProp.RegInSequence(Reg, which: TRegister): Boolean;
|
|
|
|
+ {
|
|
Var p: Tai;
|
|
Var p: Tai;
|
|
RegsChecked: TRegSet;
|
|
RegsChecked: TRegSet;
|
|
content: TContent;
|
|
content: TContent;
|
|
Counter: Byte;
|
|
Counter: Byte;
|
|
TmpResult: Boolean;
|
|
TmpResult: Boolean;
|
|
|
|
+ }
|
|
Begin
|
|
Begin
|
|
{!!!!!!!!!!1
|
|
{!!!!!!!!!!1
|
|
RegsChecked := [];
|
|
RegsChecked := [];
|
|
@@ -429,8 +431,10 @@ Unit AoptObj;
|
|
TInstrSinceLastMod);
|
|
TInstrSinceLastMod);
|
|
{ Destroys the contents of the register Reg in the PPaiProp p1, as well as }
|
|
{ Destroys the contents of the register Reg in the PPaiProp p1, as well as }
|
|
{ the contents of registers are loaded with a memory location based on Reg }
|
|
{ the contents of registers are loaded with a memory location based on Reg }
|
|
|
|
+ {
|
|
Var TmpWState, TmpRState: Byte;
|
|
Var TmpWState, TmpRState: Byte;
|
|
Counter: TRegister;
|
|
Counter: TRegister;
|
|
|
|
+ }
|
|
Begin
|
|
Begin
|
|
{!!!!!!!
|
|
{!!!!!!!
|
|
Reg := RegMaxSize(Reg);
|
|
Reg := RegMaxSize(Reg);
|
|
@@ -469,8 +473,10 @@ Unit AoptObj;
|
|
{ destroys all registers which possibly contain a reference to Ref, WhichReg }
|
|
{ destroys all registers which possibly contain a reference to Ref, WhichReg }
|
|
{ is the register whose contents are being written to memory (if this proc }
|
|
{ is the register whose contents are being written to memory (if this proc }
|
|
{ is called because of a "mov?? %reg, (mem)" instruction) }
|
|
{ is called because of a "mov?? %reg, (mem)" instruction) }
|
|
|
|
+ {
|
|
Var RefsEq: TRefCompare;
|
|
Var RefsEq: TRefCompare;
|
|
Counter: TRegister;
|
|
Counter: TRegister;
|
|
|
|
+ }
|
|
Begin
|
|
Begin
|
|
{!!!!!!!!!!!
|
|
{!!!!!!!!!!!
|
|
WhichReg := RegMaxSize(WhichReg);
|
|
WhichReg := RegMaxSize(WhichReg);
|
|
@@ -547,7 +553,7 @@ Unit AoptObj;
|
|
End;
|
|
End;
|
|
|
|
|
|
Procedure TPaiProp.DestroyAllRegs(var InstrSinceLastMod: TInstrSinceLastMod);
|
|
Procedure TPaiProp.DestroyAllRegs(var InstrSinceLastMod: TInstrSinceLastMod);
|
|
- Var Counter: TRegister;
|
|
|
|
|
|
+ {Var Counter: TRegister;}
|
|
Begin {initializes/desrtoys all registers}
|
|
Begin {initializes/desrtoys all registers}
|
|
{!!!!!!!!!
|
|
{!!!!!!!!!
|
|
For Counter := LoGPReg To HiGPReg Do
|
|
For Counter := LoGPReg To HiGPReg Do
|