ncgcon.pas 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. {
  2. Copyright (c) 1998-2002 by Florian Klaempfl
  3. Generate assembler for constant nodes which are the same for
  4. all (most) processors
  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 ncgcon;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. node,ncon;
  23. type
  24. tcgrealconstnode = class(trealconstnode)
  25. procedure pass_2;override;
  26. end;
  27. tcgordconstnode = class(tordconstnode)
  28. procedure pass_2;override;
  29. end;
  30. tcgpointerconstnode = class(tpointerconstnode)
  31. procedure pass_2;override;
  32. end;
  33. tcgstringconstnode = class(tstringconstnode)
  34. procedure pass_2;override;
  35. end;
  36. tcgsetconstnode = class(tsetconstnode)
  37. procedure pass_2;override;
  38. end;
  39. tcgnilnode = class(tnilnode)
  40. procedure pass_2;override;
  41. end;
  42. tcgguidconstnode = class(tguidconstnode)
  43. procedure pass_2;override;
  44. end;
  45. implementation
  46. uses
  47. globtype,widestr,systems,
  48. verbose,globals,
  49. symconst,symdef,aasmbase,aasmtai,aasmdata,aasmcpu,defutil,
  50. cpuinfo,cpubase,
  51. cgbase,cgobj,cgutils,
  52. ncgutil
  53. ;
  54. {*****************************************************************************
  55. TCGREALCONSTNODE
  56. *****************************************************************************}
  57. procedure tcgrealconstnode.pass_2;
  58. { I suppose the parser/pass_1 must make sure the generated real }
  59. { constants are actually supported by the target processor? (JM) }
  60. const
  61. floattype2ait:array[tfloattype] of taitype=
  62. (ait_real_32bit,ait_real_64bit,ait_real_80bit,ait_comp_64bit,ait_comp_64bit,ait_real_128bit);
  63. var
  64. hp1 : tai;
  65. lastlabel : tasmlabel;
  66. realait : taitype;
  67. {$ifdef ARM}
  68. hiloswapped : boolean;
  69. {$endif ARM}
  70. begin
  71. location_reset(location,LOC_CREFERENCE,def_cgsize(resulttype.def));
  72. lastlabel:=nil;
  73. realait:=floattype2ait[tfloatdef(resulttype.def).typ];
  74. {$ifdef ARM}
  75. hiloswapped:=aktfputype in [fpu_fpa,fpu_fpa10,fpu_fpa11];
  76. {$endif ARM}
  77. { const already used ? }
  78. if not assigned(lab_real) then
  79. begin
  80. { tries to find an old entry }
  81. hp1:=tai(current_asmdata.asmlists[al_typedconsts].first);
  82. while assigned(hp1) do
  83. begin
  84. if hp1.typ=ait_label then
  85. lastlabel:=tai_label(hp1).labsym
  86. else
  87. begin
  88. if (hp1.typ=realait) and (lastlabel<>nil) then
  89. begin
  90. if is_number_float(value_real) and
  91. (
  92. ((realait=ait_real_32bit) and (tai_real_32bit(hp1).value=value_real) and is_number_float(tai_real_32bit(hp1).value) and (get_real_sign(value_real) = get_real_sign(tai_real_32bit(hp1).value))) or
  93. ((realait=ait_real_64bit) and
  94. {$ifdef ARM}
  95. ((tai_real_64bit(hp1).formatoptions=fo_hiloswapped)=hiloswapped) and
  96. {$endif ARM}
  97. (tai_real_64bit(hp1).value=value_real) and is_number_float(tai_real_64bit(hp1).value) and (get_real_sign(value_real) = get_real_sign(tai_real_64bit(hp1).value))) or
  98. ((realait=ait_real_80bit) and (tai_real_80bit(hp1).value=value_real) and is_number_float(tai_real_80bit(hp1).value) and (get_real_sign(value_real) = get_real_sign(tai_real_80bit(hp1).value))) or
  99. {$ifdef cpufloat128}
  100. ((realait=ait_real_128bit) and (tai_real_128bit(hp1).value=value_real) and is_number_float(tai_real_128bit(hp1).value) and (get_real_sign(value_real) = get_real_sign(tai_real_128bit(hp1).value))) or
  101. {$endif cpufloat128}
  102. ((realait=ait_comp_64bit) and (tai_comp_64bit(hp1).value=value_real) and is_number_float(tai_comp_64bit(hp1).value) and (get_real_sign(value_real) = get_real_sign(tai_comp_64bit(hp1).value)))
  103. ) then
  104. begin
  105. { found! }
  106. lab_real:=lastlabel;
  107. break;
  108. end;
  109. end;
  110. lastlabel:=nil;
  111. end;
  112. hp1:=tai(hp1.next);
  113. end;
  114. { :-(, we must generate a new entry }
  115. if not assigned(lab_real) then
  116. begin
  117. current_asmdata.getdatalabel(lastlabel);
  118. lab_real:=lastlabel;
  119. maybe_new_object_file(current_asmdata.asmlists[al_typedconsts]);
  120. new_section(current_asmdata.asmlists[al_typedconsts],sec_rodata,lastlabel.name,const_align(resulttype.def.size));
  121. current_asmdata.asmlists[al_typedconsts].concat(Tai_label.Create(lastlabel));
  122. case realait of
  123. ait_real_32bit :
  124. begin
  125. current_asmdata.asmlists[al_typedconsts].concat(Tai_real_32bit.Create(ts32real(value_real)));
  126. { range checking? }
  127. if ((cs_check_range in aktlocalswitches) or
  128. (cs_check_overflow in aktlocalswitches)) and
  129. (tai_real_32bit(current_asmdata.asmlists[al_typedconsts].last).value=MathInf.Value) then
  130. Message(parser_e_range_check_error);
  131. end;
  132. ait_real_64bit :
  133. begin
  134. {$ifdef ARM}
  135. if hiloswapped then
  136. current_asmdata.asmlists[al_typedconsts].concat(Tai_real_64bit.Create_hiloswapped(ts64real(value_real)))
  137. else
  138. {$endif ARM}
  139. current_asmdata.asmlists[al_typedconsts].concat(Tai_real_64bit.Create(ts64real(value_real)));
  140. { range checking? }
  141. if ((cs_check_range in aktlocalswitches) or
  142. (cs_check_overflow in aktlocalswitches)) and
  143. (tai_real_64bit(current_asmdata.asmlists[al_typedconsts].last).value=MathInf.Value) then
  144. Message(parser_e_range_check_error);
  145. end;
  146. ait_real_80bit :
  147. begin
  148. current_asmdata.asmlists[al_typedconsts].concat(Tai_real_80bit.Create(value_real));
  149. { range checking? }
  150. if ((cs_check_range in aktlocalswitches) or
  151. (cs_check_overflow in aktlocalswitches)) and
  152. (tai_real_80bit(current_asmdata.asmlists[al_typedconsts].last).value=MathInf.Value) then
  153. Message(parser_e_range_check_error);
  154. end;
  155. {$ifdef cpufloat128}
  156. ait_real_128bit :
  157. begin
  158. current_asmdata.asmlists[al_typedconsts].concat(Tai_real_128bit.Create(value_real));
  159. { range checking? }
  160. if ((cs_check_range in aktlocalswitches) or
  161. (cs_check_overflow in aktlocalswitches)) and
  162. (tai_real_128bit(current_asmdata.asmlists[al_typedconsts].last).value=MathInf.Value) then
  163. Message(parser_e_range_check_error);
  164. end;
  165. {$endif cpufloat128}
  166. { the round is necessary for native compilers where comp isn't a float }
  167. ait_comp_64bit :
  168. if (value_real>9223372036854775807.0) or (value_real<-9223372036854775808.0) then
  169. message(parser_e_range_check_error)
  170. else
  171. current_asmdata.asmlists[al_typedconsts].concat(Tai_comp_64bit.Create(round(value_real)));
  172. else
  173. internalerror(10120);
  174. end;
  175. end;
  176. end;
  177. location.reference.symbol:=lab_real;
  178. end;
  179. {*****************************************************************************
  180. TCGORDCONSTNODE
  181. *****************************************************************************}
  182. procedure tcgordconstnode.pass_2;
  183. begin
  184. location_reset(location,LOC_CONSTANT,def_cgsize(resulttype.def));
  185. {$ifdef cpu64bit}
  186. location.value:=value;
  187. {$else cpu64bit}
  188. location.value64:=int64(value);
  189. {$endif cpu64bit}
  190. end;
  191. {*****************************************************************************
  192. TCGPOINTERCONSTNODE
  193. *****************************************************************************}
  194. procedure tcgpointerconstnode.pass_2;
  195. begin
  196. { an integer const. behaves as a memory reference }
  197. location_reset(location,LOC_CONSTANT,OS_ADDR);
  198. location.value:=aint(value);
  199. end;
  200. {*****************************************************************************
  201. TCGSTRINGCONSTNODE
  202. *****************************************************************************}
  203. procedure tcgstringconstnode.pass_2;
  204. var
  205. hp1,hp2 : tai;
  206. l1,l2,
  207. lastlabel : tasmlabel;
  208. lastlabelhp : tai;
  209. pc : pchar;
  210. same_string : boolean;
  211. l,j,
  212. i,mylength : longint;
  213. begin
  214. { for empty ansistrings we could return a constant 0 }
  215. if (cst_type in [cst_ansistring,cst_widestring]) and (len=0) then
  216. begin
  217. location_reset(location,LOC_CONSTANT,OS_ADDR);
  218. location.value:=0;
  219. exit;
  220. end;
  221. { return a constant reference in memory }
  222. location_reset(location,LOC_CREFERENCE,def_cgsize(resulttype.def));
  223. { const already used ? }
  224. lastlabel:=nil;
  225. lastlabelhp:=nil;
  226. if not assigned(lab_str) then
  227. begin
  228. if is_shortstring(resulttype.def) then
  229. mylength:=len+2
  230. else
  231. mylength:=len+1;
  232. { widestrings can't be reused yet }
  233. if not(is_widestring(resulttype.def)) then
  234. begin
  235. { tries to find an old entry }
  236. hp1:=tai(current_asmdata.asmlists[al_typedconsts].first);
  237. while assigned(hp1) do
  238. begin
  239. if hp1.typ=ait_label then
  240. begin
  241. lastlabel:=tai_label(hp1).labsym;
  242. lastlabelhp:=hp1;
  243. end
  244. else
  245. begin
  246. same_string:=false;
  247. if (hp1.typ=ait_string) and
  248. (lastlabel<>nil) and
  249. (tai_string(hp1).len=mylength) then
  250. begin
  251. case cst_type of
  252. cst_conststring:
  253. begin
  254. j:=0;
  255. same_string:=true;
  256. if len>0 then
  257. begin
  258. for i:=0 to len-1 do
  259. begin
  260. if tai_string(hp1).str[j]<>value_str[i] then
  261. begin
  262. same_string:=false;
  263. break;
  264. end;
  265. inc(j);
  266. end;
  267. end;
  268. end;
  269. cst_shortstring:
  270. begin
  271. { if shortstring then check the length byte first and
  272. set the start index to 1 }
  273. if len=ord(tai_string(hp1).str[0]) then
  274. begin
  275. j:=1;
  276. same_string:=true;
  277. if len>0 then
  278. begin
  279. for i:=0 to len-1 do
  280. begin
  281. if tai_string(hp1).str[j]<>value_str[i] then
  282. begin
  283. same_string:=false;
  284. break;
  285. end;
  286. inc(j);
  287. end;
  288. end;
  289. end;
  290. end;
  291. cst_ansistring,
  292. cst_widestring :
  293. begin
  294. { before the string the following sequence must be found:
  295. <label>
  296. constsymbol <datalabel>
  297. constint -1
  298. constint <len>
  299. we must then return <label> to reuse
  300. }
  301. hp2:=tai(lastlabelhp.previous);
  302. if assigned(hp2) and
  303. (hp2.typ=ait_const) and
  304. (tai_const(hp2).consttype=aitconst_aint) and
  305. (tai_const(hp2).value=-1) and
  306. assigned(hp2.previous) and
  307. (tai(hp2.previous).typ=ait_const) and
  308. (tai_const(hp2.previous).consttype=aitconst_aint) and
  309. (tai_const(hp2.previous).value=len) and
  310. assigned(hp2.previous.previous) and
  311. (tai(hp2.previous.previous).typ=ait_const) and
  312. (tai_const(hp2.previous.previous).consttype=aitconst_ptr) and
  313. assigned(hp2.previous.previous.previous) and
  314. (tai(hp2.previous.previous.previous).typ=ait_label) then
  315. begin
  316. lastlabel:=tai_label(hp2.previous.previous.previous).labsym;
  317. same_string:=true;
  318. j:=0;
  319. if len>0 then
  320. begin
  321. for i:=0 to len-1 do
  322. begin
  323. if tai_string(hp1).str[j]<>value_str[i] then
  324. begin
  325. same_string:=false;
  326. break;
  327. end;
  328. inc(j);
  329. end;
  330. end;
  331. end;
  332. end;
  333. end;
  334. { found ? }
  335. if same_string then
  336. begin
  337. lab_str:=lastlabel;
  338. break;
  339. end;
  340. end;
  341. lastlabel:=nil;
  342. end;
  343. hp1:=tai(hp1.next);
  344. end;
  345. end;
  346. { :-(, we must generate a new entry }
  347. if not assigned(lab_str) then
  348. begin
  349. current_asmdata.getdatalabel(lastlabel);
  350. lab_str:=lastlabel;
  351. maybe_new_object_file(current_asmdata.asmlists[al_typedconsts]);
  352. new_section(current_asmdata.asmlists[al_typedconsts],sec_rodata,lastlabel.name,const_align(sizeof(aint)));
  353. current_asmdata.asmlists[al_typedconsts].concat(Tai_label.Create(lastlabel));
  354. { generate an ansi string ? }
  355. case cst_type of
  356. cst_ansistring:
  357. begin
  358. { an empty ansi string is nil! }
  359. if len=0 then
  360. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_sym(nil))
  361. else
  362. begin
  363. current_asmdata.getdatalabel(l1);
  364. current_asmdata.getdatalabel(l2);
  365. current_asmdata.asmlists[al_typedconsts].concat(Tai_label.Create(l2));
  366. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_sym(l1));
  367. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_aint(-1));
  368. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_aint(len));
  369. current_asmdata.asmlists[al_typedconsts].concat(Tai_label.Create(l1));
  370. { include also terminating zero }
  371. getmem(pc,len+1);
  372. move(value_str^,pc^,len);
  373. pc[len]:=#0;
  374. current_asmdata.asmlists[al_typedconsts].concat(Tai_string.Create_pchar(pc,len+1));
  375. { return the offset of the real string }
  376. lab_str:=l2;
  377. end;
  378. end;
  379. cst_widestring:
  380. begin
  381. { an empty wide string is nil! }
  382. if len=0 then
  383. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_sym(nil))
  384. else
  385. begin
  386. current_asmdata.getdatalabel(l1);
  387. current_asmdata.getdatalabel(l2);
  388. current_asmdata.asmlists[al_typedconsts].concat(Tai_label.Create(l2));
  389. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_sym(l1));
  390. { we use always UTF-16 coding for constants }
  391. { at least for now }
  392. { Consts.concat(Tai_const.Create_8bit(2)); }
  393. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_aint(-1));
  394. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_aint(len*cwidechartype.def.size));
  395. current_asmdata.asmlists[al_typedconsts].concat(Tai_label.Create(l1));
  396. for i:=0 to len-1 do
  397. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_16bit(pcompilerwidestring(value_str)^.data[i]));
  398. { terminating zero }
  399. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_16bit(0));
  400. { return the offset of the real string }
  401. lab_str:=l2;
  402. end;
  403. end;
  404. cst_shortstring:
  405. begin
  406. { truncate strings larger than 255 chars }
  407. if len>255 then
  408. l:=255
  409. else
  410. l:=len;
  411. { include length and terminating zero for quick conversion to pchar }
  412. getmem(pc,l+2);
  413. move(value_str^,pc[1],l);
  414. pc[0]:=chr(l);
  415. pc[l+1]:=#0;
  416. current_asmdata.asmlists[al_typedconsts].concat(Tai_string.Create_pchar(pc,l+2));
  417. end;
  418. cst_conststring:
  419. begin
  420. { include terminating zero }
  421. getmem(pc,len+1);
  422. move(value_str^,pc[0],len);
  423. pc[len]:=#0;
  424. current_asmdata.asmlists[al_typedconsts].concat(Tai_string.Create_pchar(pc,len+1));
  425. end;
  426. end;
  427. end;
  428. end;
  429. location.reference.symbol:=lab_str;
  430. end;
  431. {*****************************************************************************
  432. TCGSETCONSTNODE
  433. *****************************************************************************}
  434. procedure tcgsetconstnode.pass_2;
  435. var
  436. hp1 : tai;
  437. lastlabel : tasmlabel;
  438. i : longint;
  439. neededtyp : taiconst_type;
  440. indexadjust : longint;
  441. type
  442. setbytes=array[0..31] of byte;
  443. Psetbytes=^setbytes;
  444. begin
  445. { xor indexadjust with indexes in a set typecasted to an array of }
  446. { bytes to get the correct locations, also when endianess of source }
  447. { and destiantion differs (JM) }
  448. if (source_info.endian = target_info.endian) then
  449. indexadjust := 0
  450. else
  451. indexadjust := 3;
  452. { small sets are loaded as constants }
  453. if tsetdef(resulttype.def).settype=smallset then
  454. begin
  455. location_reset(location,LOC_CONSTANT,OS_32);
  456. location.value:=pLongint(value_set)^;
  457. exit;
  458. end;
  459. location_reset(location,LOC_CREFERENCE,OS_NO);
  460. neededtyp:=aitconst_8bit;
  461. lastlabel:=nil;
  462. { const already used ? }
  463. if not assigned(lab_set) then
  464. begin
  465. { tries to found an old entry }
  466. hp1:=tai(current_asmdata.asmlists[al_typedconsts].first);
  467. while assigned(hp1) do
  468. begin
  469. if hp1.typ=ait_label then
  470. lastlabel:=tai_label(hp1).labsym
  471. else
  472. begin
  473. if (lastlabel<>nil) and
  474. (hp1.typ=ait_const) and
  475. (tai_const(hp1).consttype=neededtyp) then
  476. begin
  477. if (tai_const(hp1).consttype=aitconst_8bit) then
  478. begin
  479. { compare normal set }
  480. i:=0;
  481. while assigned(hp1) and (i<32) do
  482. begin
  483. if tai_const(hp1).value<>Psetbytes(value_set)^[i xor indexadjust] then
  484. break;
  485. inc(i);
  486. hp1:=tai(hp1.next);
  487. end;
  488. if i=32 then
  489. begin
  490. { found! }
  491. lab_set:=lastlabel;
  492. break;
  493. end;
  494. { leave when the end of consts is reached, so no
  495. hp1.next is done }
  496. if not assigned(hp1) then
  497. break;
  498. end
  499. else
  500. begin
  501. { compare small set }
  502. if paint(value_set)^=tai_const(hp1).value then
  503. begin
  504. { found! }
  505. lab_set:=lastlabel;
  506. break;
  507. end;
  508. end;
  509. end;
  510. lastlabel:=nil;
  511. end;
  512. hp1:=tai(hp1.next);
  513. end;
  514. { :-(, we must generate a new entry }
  515. if not assigned(lab_set) then
  516. begin
  517. current_asmdata.getdatalabel(lastlabel);
  518. lab_set:=lastlabel;
  519. maybe_new_object_file(current_asmdata.asmlists[al_typedconsts]);
  520. new_section(current_asmdata.asmlists[al_typedconsts],sec_rodata,lastlabel.name,const_align(sizeof(aint)));
  521. current_asmdata.asmlists[al_typedconsts].concat(Tai_label.Create(lastlabel));
  522. { already handled at the start of this method?? (JM)
  523. if tsetdef(resulttype.def).settype=smallset then
  524. begin
  525. move(value_set^,i,sizeof(longint));
  526. Consts.concat(Tai_const.Create_32bit(i));
  527. end
  528. else
  529. }
  530. begin
  531. for i:=0 to 31 do
  532. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_8bit(Psetbytes(value_set)^[i xor indexadjust]));
  533. end;
  534. end;
  535. end;
  536. location.reference.symbol:=lab_set;
  537. end;
  538. {*****************************************************************************
  539. TCGNILNODE
  540. *****************************************************************************}
  541. procedure tcgnilnode.pass_2;
  542. begin
  543. location_reset(location,LOC_CONSTANT,OS_ADDR);
  544. location.value:=0;
  545. end;
  546. {*****************************************************************************
  547. TCGPOINTERCONSTNODE
  548. *****************************************************************************}
  549. procedure tcgguidconstnode.pass_2;
  550. var
  551. tmplabel : TAsmLabel;
  552. i : integer;
  553. begin
  554. location_reset(location,LOC_CREFERENCE,OS_NO);
  555. { label for GUID }
  556. current_asmdata.getdatalabel(tmplabel);
  557. current_asmdata.asmlists[al_typedconsts].concat(tai_align.create(const_align(16)));
  558. current_asmdata.asmlists[al_typedconsts].concat(Tai_label.Create(tmplabel));
  559. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_32bit(longint(value.D1)));
  560. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_16bit(value.D2));
  561. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_16bit(value.D3));
  562. for i:=low(value.D4) to high(value.D4) do
  563. current_asmdata.asmlists[al_typedconsts].concat(Tai_const.Create_8bit(value.D4[i]));
  564. location.reference.symbol:=tmplabel;
  565. end;
  566. begin
  567. crealconstnode:=tcgrealconstnode;
  568. cordconstnode:=tcgordconstnode;
  569. cpointerconstnode:=tcgpointerconstnode;
  570. cstringconstnode:=tcgstringconstnode;
  571. csetconstnode:=tcgsetconstnode;
  572. cnilnode:=tcgnilnode;
  573. cguidconstnode:=tcgguidconstnode;
  574. end.