|
@@ -1301,7 +1301,7 @@ implementation
|
|
{ parser }
|
|
{ parser }
|
|
pgenutil,
|
|
pgenutil,
|
|
{ module }
|
|
{ module }
|
|
- fmodule,
|
|
|
|
|
|
+ fmodule,ppu,
|
|
{ other }
|
|
{ other }
|
|
aasmbase,
|
|
aasmbase,
|
|
gendef,
|
|
gendef,
|
|
@@ -1790,7 +1790,7 @@ implementation
|
|
cnt,i : longint;
|
|
cnt,i : longint;
|
|
intfderef : pderef;
|
|
intfderef : pderef;
|
|
begin
|
|
begin
|
|
- ppufile.getsmallset(flags);
|
|
|
|
|
|
+ ppufile.getset(tppuset1(flags));
|
|
cnt:=ppufile.getlongint;
|
|
cnt:=ppufile.getlongint;
|
|
for i:=0 to cnt-1 do
|
|
for i:=0 to cnt-1 do
|
|
begin
|
|
begin
|
|
@@ -1805,7 +1805,7 @@ implementation
|
|
var
|
|
var
|
|
i : longint;
|
|
i : longint;
|
|
begin
|
|
begin
|
|
- ppufile.putsmallset(flags);
|
|
|
|
|
|
+ ppufile.putset(tppuset1(flags));
|
|
ppufile.putlongint(interfacesderef.count);
|
|
ppufile.putlongint(interfacesderef.count);
|
|
for i:=0 to interfacesderef.count-1 do
|
|
for i:=0 to interfacesderef.count-1 do
|
|
ppufile.putderef(pderef(interfacesderef[i])^);
|
|
ppufile.putderef(pderef(interfacesderef[i])^);
|
|
@@ -1941,8 +1941,8 @@ implementation
|
|
{$endif}
|
|
{$endif}
|
|
{ load }
|
|
{ load }
|
|
ppufile.getderef(typesymderef);
|
|
ppufile.getderef(typesymderef);
|
|
- ppufile.getsmallset(defoptions);
|
|
|
|
- ppufile.getsmallset(defstates);
|
|
|
|
|
|
+ ppufile.getset(tppuset2(defoptions));
|
|
|
|
+ ppufile.getset(tppuset1(defstates));
|
|
if df_genconstraint in defoptions then
|
|
if df_genconstraint in defoptions then
|
|
begin
|
|
begin
|
|
genconstraintdata:=tgenericconstraintdata.create;
|
|
genconstraintdata:=tgenericconstraintdata.create;
|
|
@@ -2109,10 +2109,10 @@ implementation
|
|
internalerror(2015101401);
|
|
internalerror(2015101401);
|
|
ppufile.putlongint(DefId);
|
|
ppufile.putlongint(DefId);
|
|
ppufile.putderef(typesymderef);
|
|
ppufile.putderef(typesymderef);
|
|
- ppufile.putsmallset(defoptions);
|
|
|
|
|
|
+ ppufile.putset(tppuset2(defoptions));
|
|
oldintfcrc:=ppufile.do_crc;
|
|
oldintfcrc:=ppufile.do_crc;
|
|
ppufile.do_crc:=false;
|
|
ppufile.do_crc:=false;
|
|
- ppufile.putsmallset(defstates);
|
|
|
|
|
|
+ ppufile.putset(tppuset1(defstates));
|
|
if df_genconstraint in defoptions then
|
|
if df_genconstraint in defoptions then
|
|
genconstraintdata.ppuwrite(ppufile);
|
|
genconstraintdata.ppuwrite(ppufile);
|
|
if [df_generic,df_specialization]*defoptions<>[] then
|
|
if [df_generic,df_specialization]*defoptions<>[] then
|
|
@@ -4125,7 +4125,7 @@ implementation
|
|
ppufile.getderef(rangedefderef);
|
|
ppufile.getderef(rangedefderef);
|
|
lowrange:=ppufile.getasizeint;
|
|
lowrange:=ppufile.getasizeint;
|
|
highrange:=ppufile.getasizeint;
|
|
highrange:=ppufile.getasizeint;
|
|
- ppufile.getsmallset(arrayoptions);
|
|
|
|
|
|
+ ppufile.getset(tppuset1(arrayoptions));
|
|
ppuload_platform(ppufile);
|
|
ppuload_platform(ppufile);
|
|
symtable:=tarraysymtable.create(self);
|
|
symtable:=tarraysymtable.create(self);
|
|
tarraysymtable(symtable).ppuload(ppufile)
|
|
tarraysymtable(symtable).ppuload(ppufile)
|
|
@@ -4165,7 +4165,7 @@ implementation
|
|
ppufile.putderef(rangedefderef);
|
|
ppufile.putderef(rangedefderef);
|
|
ppufile.putasizeint(lowrange);
|
|
ppufile.putasizeint(lowrange);
|
|
ppufile.putasizeint(highrange);
|
|
ppufile.putasizeint(highrange);
|
|
- ppufile.putsmallset(arrayoptions);
|
|
|
|
|
|
+ ppufile.putset(tppuset1(arrayoptions));
|
|
writeentry(ppufile,ibarraydef);
|
|
writeentry(ppufile,ibarraydef);
|
|
tarraysymtable(symtable).ppuwrite(ppufile);
|
|
tarraysymtable(symtable).ppuwrite(ppufile);
|
|
end;
|
|
end;
|
|
@@ -4393,7 +4393,7 @@ implementation
|
|
{ only used for external C++ classes and Java classes/records }
|
|
{ only used for external C++ classes and Java classes/records }
|
|
if (import_lib^='') then
|
|
if (import_lib^='') then
|
|
stringdispose(import_lib);
|
|
stringdispose(import_lib);
|
|
- ppufile.getsmallset(objectoptions);
|
|
|
|
|
|
+ ppufile.getset(tppuset4(objectoptions));
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure tabstractrecorddef.ppuwrite(ppufile: tcompilerppufile);
|
|
procedure tabstractrecorddef.ppuwrite(ppufile: tcompilerppufile);
|
|
@@ -4404,7 +4404,7 @@ implementation
|
|
ppufile.putstring(import_lib^)
|
|
ppufile.putstring(import_lib^)
|
|
else
|
|
else
|
|
ppufile.putstring('');
|
|
ppufile.putstring('');
|
|
- ppufile.putsmallset(objectoptions);
|
|
|
|
|
|
+ ppufile.putset(tppuset4(objectoptions));
|
|
end;
|
|
end;
|
|
|
|
|
|
destructor tabstractrecorddef.destroy;
|
|
destructor tabstractrecorddef.destroy;
|
|
@@ -4901,7 +4901,7 @@ implementation
|
|
trecordsymtable(symtable).recordalignmin:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).recordalignmin:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).datasize:=ppufile.getasizeint;
|
|
trecordsymtable(symtable).datasize:=ppufile.getasizeint;
|
|
trecordsymtable(symtable).paddingsize:=ppufile.getword;
|
|
trecordsymtable(symtable).paddingsize:=ppufile.getword;
|
|
- ppufile.getsmallset(trecordsymtable(symtable).managementoperators);
|
|
|
|
|
|
+ ppufile.getset(tppuset1(trecordsymtable(symtable).managementoperators));
|
|
{ position of ppuload_platform call must correspond
|
|
{ position of ppuload_platform call must correspond
|
|
to position of writeentry in ppuwrite method }
|
|
to position of writeentry in ppuwrite method }
|
|
ppuload_platform(ppufile);
|
|
ppuload_platform(ppufile);
|
|
@@ -5059,7 +5059,7 @@ implementation
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).recordalignmin));
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).recordalignmin));
|
|
ppufile.putasizeint(trecordsymtable(symtable).datasize);
|
|
ppufile.putasizeint(trecordsymtable(symtable).datasize);
|
|
ppufile.putword(trecordsymtable(symtable).paddingsize);
|
|
ppufile.putword(trecordsymtable(symtable).paddingsize);
|
|
- ppufile.putsmallset(trecordsymtable(symtable).managementoperators);
|
|
|
|
|
|
+ ppufile.putset(tppuset1(trecordsymtable(symtable).managementoperators));
|
|
{ the variantrecdesc is needed only for iso-like new statements new(prec,1,2,3 ...);
|
|
{ the variantrecdesc is needed only for iso-like new statements new(prec,1,2,3 ...);
|
|
but because iso mode supports no units, there is no need to store the variantrecdesc
|
|
but because iso mode supports no units, there is no need to store the variantrecdesc
|
|
in the ppu
|
|
in the ppu
|
|
@@ -5293,7 +5293,7 @@ implementation
|
|
ppufile.getderef(returndefderef);
|
|
ppufile.getderef(returndefderef);
|
|
proctypeoption:=tproctypeoption(ppufile.getbyte);
|
|
proctypeoption:=tproctypeoption(ppufile.getbyte);
|
|
proccalloption:=tproccalloption(ppufile.getbyte);
|
|
proccalloption:=tproccalloption(ppufile.getbyte);
|
|
- ppufile.getnormalset(procoptions);
|
|
|
|
|
|
+ ppufile.getset(tppuset8(procoptions));
|
|
|
|
|
|
funcretloc[callerside].init;
|
|
funcretloc[callerside].init;
|
|
if po_explicitparaloc in procoptions then
|
|
if po_explicitparaloc in procoptions then
|
|
@@ -5318,7 +5318,7 @@ implementation
|
|
ppufile.do_interface_crc:=false;
|
|
ppufile.do_interface_crc:=false;
|
|
ppufile.putbyte(ord(proctypeoption));
|
|
ppufile.putbyte(ord(proctypeoption));
|
|
ppufile.putbyte(ord(proccalloption));
|
|
ppufile.putbyte(ord(proccalloption));
|
|
- ppufile.putnormalset(procoptions);
|
|
|
|
|
|
+ ppufile.putset(tppuset8(procoptions));
|
|
ppufile.do_interface_crc:=oldintfcrc;
|
|
ppufile.do_interface_crc:=oldintfcrc;
|
|
|
|
|
|
if (po_explicitparaloc in procoptions) then
|
|
if (po_explicitparaloc in procoptions) then
|
|
@@ -5986,7 +5986,7 @@ implementation
|
|
ppufile.getderef(procsymderef);
|
|
ppufile.getderef(procsymderef);
|
|
ppufile.getposinfo(fileinfo);
|
|
ppufile.getposinfo(fileinfo);
|
|
visibility:=tvisibility(ppufile.getbyte);
|
|
visibility:=tvisibility(ppufile.getbyte);
|
|
- ppufile.getsmallset(symoptions);
|
|
|
|
|
|
+ ppufile.getset(tppuset2(symoptions));
|
|
if sp_has_deprecated_msg in symoptions then
|
|
if sp_has_deprecated_msg in symoptions then
|
|
deprecatedmsg:=ppufile.getpshortstring
|
|
deprecatedmsg:=ppufile.getpshortstring
|
|
else
|
|
else
|
|
@@ -6008,12 +6008,12 @@ implementation
|
|
if (po_dispid in procoptions) then
|
|
if (po_dispid in procoptions) then
|
|
dispid:=ppufile.getlongint;
|
|
dispid:=ppufile.getlongint;
|
|
{ inline stuff }
|
|
{ inline stuff }
|
|
- ppufile.getsmallset(implprocoptions);
|
|
|
|
|
|
+ ppufile.getset(tppuset1(implprocoptions));
|
|
if has_inlininginfo then
|
|
if has_inlininginfo then
|
|
begin
|
|
begin
|
|
ppufile.getderef(funcretsymderef);
|
|
ppufile.getderef(funcretsymderef);
|
|
new(inlininginfo);
|
|
new(inlininginfo);
|
|
- ppufile.getsmallset(inlininginfo^.flags);
|
|
|
|
|
|
+ ppufile.getset(tppuset4(inlininginfo^.flags));
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
@@ -6159,7 +6159,7 @@ implementation
|
|
ppufile.putderef(procsymderef);
|
|
ppufile.putderef(procsymderef);
|
|
ppufile.putposinfo(fileinfo);
|
|
ppufile.putposinfo(fileinfo);
|
|
ppufile.putbyte(byte(visibility));
|
|
ppufile.putbyte(byte(visibility));
|
|
- ppufile.putsmallset(symoptions);
|
|
|
|
|
|
+ ppufile.putset(tppuset2(symoptions));
|
|
if sp_has_deprecated_msg in symoptions then
|
|
if sp_has_deprecated_msg in symoptions then
|
|
ppufile.putstring(deprecatedmsg^);
|
|
ppufile.putstring(deprecatedmsg^);
|
|
{ import }
|
|
{ import }
|
|
@@ -6177,11 +6177,11 @@ implementation
|
|
{ inline stuff }
|
|
{ inline stuff }
|
|
oldintfcrc:=ppufile.do_crc;
|
|
oldintfcrc:=ppufile.do_crc;
|
|
ppufile.do_crc:=false;
|
|
ppufile.do_crc:=false;
|
|
- ppufile.putsmallset(implprocoptions);
|
|
|
|
|
|
+ ppufile.putset(tppuset1(implprocoptions));
|
|
if has_inlininginfo then
|
|
if has_inlininginfo then
|
|
begin
|
|
begin
|
|
ppufile.putderef(funcretsymderef);
|
|
ppufile.putderef(funcretsymderef);
|
|
- ppufile.putsmallset(inlininginfo^.flags);
|
|
|
|
|
|
+ ppufile.putset(tppuset4(inlininginfo^.flags));
|
|
end;
|
|
end;
|
|
|
|
|
|
{ count alias names }
|
|
{ count alias names }
|