|
@@ -54,24 +54,13 @@ unit cpupi;
|
|
|
|
|
|
procedure tcpuprocinfo.set_first_temp_offset;
|
|
|
begin
|
|
|
- if tg.direction = -1 then
|
|
|
- tg.setfirsttemp(0)
|
|
|
- else if not (po_nostackframe in procdef.procoptions) then
|
|
|
- tg.setfirsttemp(maxpushedparasize+1)
|
|
|
- else
|
|
|
- tg.setfirsttemp(maxpushedparasize);
|
|
|
+ tg.setfirsttemp(0);
|
|
|
end;
|
|
|
|
|
|
|
|
|
function tcpuprocinfo.calc_stackframe_size:longint;
|
|
|
begin
|
|
|
- if tg.lasttemp=2 then
|
|
|
- { correct that lasttemp is 2 in case of an empty stack due to the post-decrement pushing and an additional correction
|
|
|
- in tgobj.setfirsttemp.
|
|
|
- }
|
|
|
- result:=maxpushedparasize
|
|
|
- else
|
|
|
- result:=tg.direction*tg.lasttemp+maxpushedparasize;
|
|
|
+ result:=-tg.lasttemp+maxpushedparasize;
|
|
|
end;
|
|
|
|
|
|
|