tgobj.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit implements the base object for temp. generator
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit tgobj;
  19. {$i defines.inc}
  20. interface
  21. uses
  22. globals,
  23. cpubase,
  24. cpuinfo,
  25. cpuasm,
  26. tainst,
  27. cclasses,globtype,cgbase,aasm;
  28. type
  29. ttemptype = (tt_none,tt_free,tt_normal,tt_persistant,
  30. tt_ansistring,tt_freeansistring,tt_widestring,tt_freewidestring,
  31. tt_interfacecom,tt_freeinterfacecom);
  32. ttemptypeset = set of ttemptype;
  33. ptemprecord = ^ttemprecord;
  34. ttemprecord = record
  35. temptype : ttemptype;
  36. pos : longint;
  37. size : longint;
  38. next : ptemprecord;
  39. nextfree : ptemprecord; { for faster freeblock checking }
  40. {$ifdef EXTDEBUG}
  41. posinfo,
  42. releaseposinfo : tfileposinfo;
  43. {$endif}
  44. end;
  45. ttgobj = class
  46. { contains all temps }
  47. templist : ptemprecord;
  48. { contains all free temps using nextfree links }
  49. tempfreelist : ptemprecord;
  50. { Offsets of the first/last temp }
  51. firsttemp,
  52. lasttemp : longint;
  53. lasttempofsize : ptemprecord;
  54. { tries to hold the amount of times which the current tree is processed }
  55. t_times: longint;
  56. constructor create;
  57. { generates temporary variables }
  58. procedure resettempgen;
  59. procedure setfirsttemp(l : longint);
  60. function gettempsize : longint;
  61. function gettempofsize(list: taasmoutput; size : longint) : longint;
  62. { special call for inlined procedures }
  63. function gettempofsizepersistant(list: taasmoutput; size : longint) : longint;
  64. procedure gettempofsizereferencepersistant(list: taasmoutput; l : longint;var ref : treference);
  65. procedure gettemppointerreferencefortype(list: taasmoutput; var ref : treference; const usedtype, freetype: ttemptype);
  66. function ungettemppointeriftype(list: taasmoutput; const ref : treference; const usedtype, freetype: ttemptype) : boolean;
  67. { for parameter func returns }
  68. procedure normaltemptopersistant(pos : longint);
  69. procedure persistanttemptonormal(pos : longint);
  70. {procedure ungettemp(pos : longint;size : longint);}
  71. procedure ungetpersistanttemp(list: taasmoutput; pos : longint);
  72. procedure ungetpersistanttempreference(list: taasmoutput; const ref : treference);
  73. procedure gettempofsizereference(list: taasmoutput; l : longint;var ref : treference);
  74. function istemp(const ref : treference) : boolean;
  75. procedure ungetiftemp(list: taasmoutput; const ref : treference);
  76. function getsizeoftemp(const ref: treference): longint;
  77. function ungetiftempansi(list: taasmoutput; const ref : treference) : boolean;
  78. procedure gettempansistringreference(list: taasmoutput; var ref : treference);
  79. function ungetiftempwidestr(list: taasmoutput; const ref : treference) : boolean;
  80. procedure gettempwidestringreference(list: taasmoutput; var ref : treference);
  81. function ungetiftempintfcom(list: taasmoutput; const ref : treference) : boolean;
  82. procedure gettempintfcomreference(list: taasmoutput; var ref : treference);
  83. private
  84. function ungettemp(list: taasmoutput; pos:longint;allowtype:ttemptype):ttemptype;
  85. function newtempofsize(size : longint) : longint;
  86. end;
  87. var
  88. tg: ttgobj;
  89. implementation
  90. uses
  91. systems,
  92. verbose,cutils;
  93. constructor ttgobj.create;
  94. begin
  95. tempfreelist:=nil;
  96. templist:=nil;
  97. lasttempofsize := nil;
  98. end;
  99. procedure ttgobj.resettempgen;
  100. var
  101. hp : ptemprecord;
  102. begin
  103. { Clear the old templist }
  104. while assigned(templist) do
  105. begin
  106. {$ifdef EXTDEBUG}
  107. case templist^.temptype of
  108. tt_normal,
  109. tt_persistant :
  110. Comment(V_Warning,'temporary assignment of size '+
  111. tostr(templist^.size)+' from pos '+tostr(templist^.posinfo.line)+
  112. ':'+tostr(templist^.posinfo.column)+
  113. ' at pos '+tostr(templist^.pos)+
  114. ' not freed at the end of the procedure');
  115. tt_ansistring :
  116. Comment(V_Warning,'temporary ANSI assignment of size '+
  117. tostr(templist^.size)+' from pos '+tostr(templist^.posinfo.line)+
  118. ':'+tostr(templist^.posinfo.column)+
  119. ' at pos '+tostr(templist^.pos)+
  120. ' not freed at the end of the procedure');
  121. tt_widestring :
  122. Comment(V_Warning,'temporary WIDE assignment of size '+
  123. tostr(templist^.size)+' from pos '+tostr(templist^.posinfo.line)+
  124. ':'+tostr(templist^.posinfo.column)+
  125. ' at pos '+tostr(templist^.pos)+
  126. ' not freed at the end of the procedure');
  127. end;
  128. {$endif}
  129. hp:=templist;
  130. templist:=hp^.next;
  131. dispose(hp);
  132. end;
  133. templist:=nil;
  134. tempfreelist:=nil;
  135. firsttemp:=0;
  136. lasttemp:=0;
  137. end;
  138. procedure ttgobj.setfirsttemp(l : longint);
  139. begin
  140. { this is a negative value normally }
  141. if l < 0 then
  142. Begin
  143. if odd(l) then
  144. Dec(l);
  145. end
  146. else
  147. Begin
  148. if odd(l) then
  149. Inc(l);
  150. end;
  151. firsttemp:=l;
  152. lasttemp:=l;
  153. end;
  154. function ttgobj.newtempofsize(size : longint) : longint;
  155. var
  156. tl : ptemprecord;
  157. begin
  158. { we need to allocate at least a minimum of 4 bytes, else
  159. we get two temps at the same position resulting in problems
  160. when finding the corresponding temprecord }
  161. if size=0 then
  162. size:=4;
  163. { Just extend the temp, everything below has been use
  164. already }
  165. dec(lasttemp,size);
  166. { now we can create the templist entry }
  167. new(tl);
  168. tl^.temptype:=tt_normal;
  169. tl^.pos:=lasttemp;
  170. tl^.size:=size;
  171. tl^.next:=templist;
  172. tl^.nextfree:=nil;
  173. templist:=tl;
  174. newtempofsize:=tl^.pos;
  175. end;
  176. function ttgobj.gettempofsize(list: taasmoutput; size : longint) : longint;
  177. var
  178. tl,
  179. bestslot,bestprev,
  180. hprev,hp : ptemprecord;
  181. bestsize,ofs : longint;
  182. begin
  183. bestprev:=nil;
  184. bestslot:=nil;
  185. tl:=nil;
  186. bestsize:=0;
  187. {$ifdef EXTDEBUG}
  188. if size=0 then
  189. Comment(V_Warning,'Temp of size 0 requested');
  190. {$endif}
  191. { Align needed size on 4 bytes }
  192. if (size mod 4)<>0 then
  193. size:=size+(4-(size mod 4));
  194. { First check the tmpfreelist }
  195. if assigned(tempfreelist) then
  196. begin
  197. { Check for a slot with the same size first }
  198. hprev:=nil;
  199. hp:=tempfreelist;
  200. while assigned(hp) do
  201. begin
  202. {$ifdef EXTDEBUG}
  203. if hp^.temptype<>tt_free then
  204. Comment(V_Warning,'Temp in freelist is not set to tt_free');
  205. {$endif}
  206. if hp^.size>=size then
  207. begin
  208. { Slot is the same size, then leave immediatly }
  209. if hp^.size=size then
  210. begin
  211. bestprev:=hprev;
  212. bestslot:=hp;
  213. bestsize:=size;
  214. break;
  215. end
  216. else
  217. begin
  218. if (bestsize=0) or (hp^.size<bestsize) then
  219. begin
  220. bestprev:=hprev;
  221. bestslot:=hp;
  222. bestsize:=hp^.size;
  223. end;
  224. end;
  225. end;
  226. hprev:=hp;
  227. hp:=hp^.nextfree;
  228. end;
  229. end;
  230. { Reuse an old temp ? }
  231. if assigned(bestslot) then
  232. begin
  233. if bestsize=size then
  234. begin
  235. bestslot^.temptype:=tt_normal;
  236. ofs:=bestslot^.pos;
  237. tl:=bestslot;
  238. { Remove from the tempfreelist }
  239. if assigned(bestprev) then
  240. bestprev^.nextfree:=bestslot^.nextfree
  241. else
  242. tempfreelist:=bestslot^.nextfree;
  243. end
  244. else
  245. begin
  246. { Resize the old block }
  247. dec(bestslot^.size,size);
  248. { Create new block and link after bestslot }
  249. new(tl);
  250. tl^.temptype:=tt_normal;
  251. tl^.pos:=bestslot^.pos+bestslot^.size;
  252. ofs:=tl^.pos;
  253. tl^.size:=size;
  254. tl^.nextfree:=nil;
  255. { link the new block }
  256. tl^.next:=bestslot^.next;
  257. bestslot^.next:=tl;
  258. end;
  259. end
  260. else
  261. begin
  262. ofs:=newtempofsize(size);
  263. tl:=templist;
  264. end;
  265. lasttempofsize:=tl;
  266. {$ifdef EXTDEBUG}
  267. tl^.posinfo:=aktfilepos;
  268. {$endif}
  269. list.concat(Taitempalloc.alloc(ofs,size));
  270. gettempofsize:=ofs;
  271. end;
  272. function ttgobj.gettempofsizepersistant(list: taasmoutput; size : longint) : longint;
  273. var
  274. l : longint;
  275. begin
  276. l:=gettempofsize(list, size);
  277. lasttempofsize^.temptype:=tt_persistant;
  278. {$ifdef EXTDEBUG}
  279. Comment(V_Debug,'temp managment : call to gettempofsizepersistant()'+
  280. ' with size '+tostr(size)+' returned '+tostr(l));
  281. {$endif}
  282. gettempofsizepersistant:=l;
  283. end;
  284. function ttgobj.gettempsize : longint;
  285. var
  286. _align : longint;
  287. begin
  288. { align to 4 bytes at least
  289. otherwise all those subl $2,%esp are meaningless PM }
  290. _align:=target_info.alignment.localalignmin;
  291. if _align<4 then
  292. _align:=4;
  293. gettempsize:=Align(-lasttemp,_align);
  294. end;
  295. procedure ttgobj.gettempofsizereference(list: taasmoutput; l : longint;var ref : treference);
  296. begin
  297. { do a reset, because the reference isn't used }
  298. FillChar(ref,sizeof(treference),0);
  299. ref.offset:=gettempofsize(list,l);
  300. ref.base:=procinfo^.framepointer;
  301. end;
  302. procedure ttgobj.gettempofsizereferencepersistant(list: taasmoutput; l : longint;var ref : treference);
  303. begin
  304. { do a reset, because the reference isn't used }
  305. FillChar(ref,sizeof(treference),0);
  306. ref.offset:=gettempofsizepersistant(list,l);
  307. ref.base:=procinfo^.framepointer;
  308. end;
  309. procedure ttgobj.gettemppointerreferencefortype(list: taasmoutput; var ref : treference; const usedtype, freetype: ttemptype);
  310. var
  311. foundslot,tl : ptemprecord;
  312. begin
  313. { do a reset, because the reference isn't used }
  314. FillChar(ref,sizeof(treference),0);
  315. ref.base:=procinfo^.framepointer;
  316. { Reuse old slot ? }
  317. foundslot:=nil;
  318. tl:=templist;
  319. while assigned(tl) do
  320. begin
  321. if tl^.temptype=freetype then
  322. begin
  323. foundslot:=tl;
  324. {$ifdef EXTDEBUG}
  325. tl^.posinfo:=aktfilepos;
  326. {$endif}
  327. break;
  328. end;
  329. tl:=tl^.next;
  330. end;
  331. if assigned(foundslot) then
  332. begin
  333. foundslot^.temptype:=usedtype;
  334. ref.offset:=foundslot^.pos;
  335. end
  336. else
  337. begin
  338. ref.offset:=newtempofsize(target_info.size_of_pointer);
  339. {$ifdef EXTDEBUG}
  340. templist^.posinfo:=aktfilepos;
  341. {$endif}
  342. templist^.temptype:=usedtype;
  343. end;
  344. list.concat(Taitempalloc.alloc(ref.offset,target_info.size_of_pointer));
  345. end;
  346. function ttgobj.ungettemppointeriftype(list: taasmoutput; const ref : treference; const usedtype, freetype: ttemptype) : boolean;
  347. var
  348. tl : ptemprecord;
  349. begin
  350. ungettemppointeriftype:=false;
  351. tl:=templist;
  352. while assigned(tl) do
  353. begin
  354. if tl^.pos=ref.offset then
  355. begin
  356. if tl^.temptype=usedtype then
  357. begin
  358. tl^.temptype:=freetype;
  359. ungettemppointeriftype:=true;
  360. list.concat(Taitempalloc.dealloc(tl^.pos,tl^.size));
  361. exit;
  362. {$ifdef EXTDEBUG}
  363. end
  364. else if (tl^.temptype=freetype) then
  365. begin
  366. Comment(V_Debug,'temp managment problem : ungettemppointeriftype()'+
  367. ' at pos '+tostr(ref.offset)+ ' already free !');
  368. {$endif}
  369. end;
  370. end;
  371. tl:=tl^.next;
  372. end;
  373. end;
  374. procedure ttgobj.gettempansistringreference(list: taasmoutput; var ref : treference);
  375. begin
  376. gettemppointerreferencefortype(list,ref,tt_ansistring,tt_freeansistring);
  377. end;
  378. procedure ttgobj.gettempwidestringreference(list: taasmoutput; var ref : treference);
  379. begin
  380. gettemppointerreferencefortype(list,ref,tt_widestring,tt_freewidestring);
  381. end;
  382. function ttgobj.ungetiftempansi(list: taasmoutput; const ref : treference) : boolean;
  383. begin
  384. ungetiftempansi:=ungettemppointeriftype(list,ref,tt_ansistring,tt_freeansistring);
  385. end;
  386. function ttgobj.ungetiftempwidestr(list: taasmoutput; const ref : treference) : boolean;
  387. begin
  388. ungetiftempwidestr:=ungettemppointeriftype(list,ref,tt_widestring,tt_freewidestring);
  389. end;
  390. procedure ttgobj.gettempintfcomreference(list: taasmoutput; var ref : treference);
  391. begin
  392. gettemppointerreferencefortype(list,ref,tt_interfacecom,tt_freeinterfacecom);
  393. end;
  394. function ttgobj.ungetiftempintfcom(list: taasmoutput; const ref : treference) : boolean;
  395. begin
  396. ungetiftempintfcom:=ungettemppointeriftype(list,ref,tt_ansistring,tt_freeansistring);
  397. end;
  398. function ttgobj.istemp(const ref : treference) : boolean;
  399. begin
  400. { ref.index = R_NO was missing
  401. led to problems with local arrays
  402. with lower bound > 0 (PM) }
  403. istemp:=((ref.base=procinfo^.framepointer) and
  404. {$ifdef i386}
  405. (ref.index=R_NO) and
  406. {$endif}
  407. (ref.offset<firsttemp));
  408. end;
  409. procedure ttgobj.persistanttemptonormal(pos : longint);
  410. var
  411. hp : ptemprecord;
  412. begin
  413. hp:=templist;
  414. while assigned(hp) do
  415. if (hp^.pos=pos) and (hp^.temptype=tt_persistant) then
  416. begin
  417. {$ifdef EXTDEBUG}
  418. Comment(V_Debug,'temp managment : persistanttemptonormal()'+
  419. ' at pos '+tostr(pos)+ ' found !');
  420. {$endif}
  421. hp^.temptype:=tt_normal;
  422. exit;
  423. end
  424. else
  425. hp:=hp^.next;
  426. {$ifdef EXTDEBUG}
  427. Comment(V_Debug,'temp managment problem : persistanttemptonormal()'+
  428. ' at pos '+tostr(pos)+ ' not found !');
  429. {$endif}
  430. end;
  431. procedure ttgobj.normaltemptopersistant(pos : longint);
  432. var
  433. hp : ptemprecord;
  434. begin
  435. hp:=templist;
  436. while assigned(hp) do
  437. if (hp^.pos=pos) and (hp^.temptype=tt_normal) then
  438. begin
  439. {$ifdef EXTDEBUG}
  440. Comment(V_Debug,'temp managment : normaltemptopersistant()'+
  441. ' at pos '+tostr(pos)+ ' found !');
  442. {$endif}
  443. hp^.temptype:=tt_persistant;
  444. exit;
  445. end
  446. else
  447. hp:=hp^.next;
  448. {$ifdef EXTDEBUG}
  449. Comment(V_Debug,'temp managment problem : normaltemptopersistant()'+
  450. ' at pos '+tostr(pos)+ ' not found !');
  451. {$endif}
  452. end;
  453. function ttgobj.ungettemp(list: taasmoutput; pos:longint;allowtype:ttemptype):ttemptype;
  454. var
  455. hp,hnext,hprev,hprevfree : ptemprecord;
  456. begin
  457. ungettemp:=tt_none;
  458. hp:=templist;
  459. hprev:=nil;
  460. hprevfree:=nil;
  461. while assigned(hp) do
  462. begin
  463. if (hp^.pos=pos) then
  464. begin
  465. { check type }
  466. ungettemp:=hp^.temptype;
  467. if hp^.temptype<>allowtype then
  468. begin
  469. exit;
  470. end;
  471. list.concat(Taitempalloc.dealloc(hp^.pos,hp^.size));
  472. { set this block to free }
  473. hp^.temptype:=tt_free;
  474. { Update tempfreelist }
  475. if assigned(hprevfree) then
  476. begin
  477. { Connect with previous? }
  478. if assigned(hprev) and (hprev^.temptype=tt_free) then
  479. begin
  480. inc(hprev^.size,hp^.size);
  481. hprev^.next:=hp^.next;
  482. dispose(hp);
  483. hp:=hprev;
  484. end
  485. else
  486. hprevfree^.nextfree:=hp;
  487. end
  488. else
  489. begin
  490. hp^.nextfree:=tempfreelist;
  491. tempfreelist:=hp;
  492. end;
  493. { Next block free ? Yes, then concat }
  494. hnext:=hp^.next;
  495. if assigned(hnext) and (hnext^.temptype=tt_free) then
  496. begin
  497. inc(hp^.size,hnext^.size);
  498. hp^.nextfree:=hnext^.nextfree;
  499. hp^.next:=hnext^.next;
  500. dispose(hnext);
  501. end;
  502. exit;
  503. end;
  504. if (hp^.temptype=tt_free) then
  505. hprevfree:=hp;
  506. hprev:=hp;
  507. hp:=hp^.next;
  508. end;
  509. ungettemp:=tt_none;
  510. end;
  511. function ttgobj.getsizeoftemp(const ref: treference): longint;
  512. var
  513. hp : ptemprecord;
  514. begin
  515. hp:=templist;
  516. while assigned(hp) do
  517. begin
  518. if (hp^.pos=ref.offset) then
  519. begin
  520. getsizeoftemp := hp^.size;
  521. exit;
  522. end;
  523. hp := hp^.next;
  524. end;
  525. getsizeoftemp := -1;
  526. end;
  527. procedure ttgobj.ungetpersistanttemp(list: taasmoutput; pos : longint);
  528. begin
  529. {$ifdef EXTDEBUG}
  530. if ungettemp(list,pos,tt_persistant)<>tt_persistant then
  531. Comment(V_Warning,'temp managment problem : ungetpersistanttemp()'+
  532. ' at pos '+tostr(pos)+ ' not found !');
  533. {$else}
  534. ungettemp(list,pos,tt_persistant);
  535. {$endif}
  536. end;
  537. procedure ttgobj.ungetpersistanttempreference(list: taasmoutput; const ref : treference);
  538. begin
  539. ungetpersistanttemp(list, ref.offset);
  540. end;
  541. procedure ttgobj.ungetiftemp(list: taasmoutput; const ref : treference);
  542. {$ifdef EXTDEBUG}
  543. var
  544. tt : ttemptype;
  545. {$endif}
  546. begin
  547. if istemp(ref) then
  548. begin
  549. { first check if ansistring }
  550. if ungetiftempansi(list,ref) or
  551. ungetiftempwidestr(list,ref) or
  552. ungetiftempintfcom(list,ref) then
  553. exit;
  554. {$ifndef EXTDEBUG}
  555. ungettemp(list,ref.offset,tt_normal);
  556. {$else}
  557. tt:=ungettemp(list,ref.offset,tt_normal);
  558. if tt=tt_persistant then
  559. Comment(V_Debug,'temp at pos '+tostr(ref.offset)+ ' not released because persistant!');
  560. if tt=tt_none then
  561. Comment(V_Warning,'temp not found for release at offset '+tostr(ref.offset));
  562. {$endif}
  563. end;
  564. end;
  565. initialization
  566. tg := ttgobj.create;
  567. finalization
  568. tg.free;
  569. end.
  570. {
  571. $Log$
  572. Revision 1.3 2002-04-04 19:06:06 peter
  573. * removed unused units
  574. * use tlocation.size in cg.a_*loc*() routines
  575. Revision 1.2 2002/04/02 17:11:32 peter
  576. * tlocation,treference update
  577. * LOC_CONSTANT added for better constant handling
  578. * secondadd splitted in multiple routines
  579. * location_force_reg added for loading a location to a register
  580. of a specified size
  581. * secondassignment parses now first the right and then the left node
  582. (this is compatible with Kylix). This saves a lot of push/pop especially
  583. with string operations
  584. * adapted some routines to use the new cg methods
  585. Revision 1.1 2002/03/31 20:26:37 jonas
  586. + a_loadfpu_* and a_loadmm_* methods in tcg
  587. * register allocation is now handled by a class and is mostly processor
  588. independent (+rgobj.pas and i386/rgcpu.pas)
  589. * temp allocation is now handled by a class (+tgobj.pas, -i386\tgcpu.pas)
  590. * some small improvements and fixes to the optimizer
  591. * some register allocation fixes
  592. * some fpuvaroffset fixes in the unary minus node
  593. * push/popusedregisters is now called rg.save/restoreusedregisters and
  594. (for i386) uses temps instead of push/pop's when using -Op3 (that code is
  595. also better optimizable)
  596. * fixed and optimized register saving/restoring for new/dispose nodes
  597. * LOC_FPU locations now also require their "register" field to be set to
  598. R_ST, not R_ST0 (the latter is used for LOC_CFPUREGISTER locations only)
  599. - list field removed of the tnode class because it's not used currently
  600. and can cause hard-to-find bugs
  601. Revision 1.1 2000/07/13 06:30:09 michael
  602. + Initial import
  603. Revision 1.10 2000/02/17 14:48:36 florian
  604. * updated to use old firstpass
  605. Revision 1.9 2000/01/07 01:14:55 peter
  606. * updated copyright to 2000
  607. Revision 1.8 1999/10/14 14:57:54 florian
  608. - removed the hcodegen use in the new cg, use cgbase instead
  609. Revision 1.7 1999/10/12 21:20:47 florian
  610. * new codegenerator compiles again
  611. Revision 1.6 1999/09/10 18:48:11 florian
  612. * some bug fixes (e.g. must_be_valid and procinfo.funcret_is_valid)
  613. * most things for stored properties fixed
  614. Revision 1.5 1999/08/06 16:04:06 michael
  615. + introduced tainstruction
  616. Revision 1.4 1999/08/03 00:33:23 michael
  617. + Added cpuasm for alpha
  618. Revision 1.3 1999/08/03 00:32:13 florian
  619. * reg_vars and reg_pushes is now in tgobj
  620. Revision 1.2 1999/08/02 23:13:22 florian
  621. * more changes to compile for the Alpha
  622. Revision 1.1 1999/08/02 17:14:12 florian
  623. + changed the temp. generator to an object
  624. }