mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 15:09:20 +02:00
compiler: reduce the overhead made in previous revision
git-svn-id: trunk@16507 -
This commit is contained in:
parent
1c0e482d7d
commit
3e5f6e7a60
@ -1828,6 +1828,16 @@ implementation
|
||||
while assigned(stackitem) do
|
||||
begin
|
||||
srsymtable:=stackitem^.symtable;
|
||||
if (srsymtable.symtabletype=objectsymtable) then
|
||||
begin
|
||||
if searchsym_in_class(tobjectdef(srsymtable.defowner),tobjectdef(srsymtable.defowner),s,srsym,srsymtable) then
|
||||
begin
|
||||
result:=true;
|
||||
exit;
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
srsym:=tsym(srsymtable.FindWithHash(hashedid));
|
||||
if assigned(srsym) then
|
||||
begin
|
||||
@ -1855,14 +1865,6 @@ implementation
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
{ also search for class helpers }
|
||||
if (srsymtable.symtabletype=objectsymtable) then
|
||||
begin
|
||||
if searchsym_in_class(tobjectdef(srsymtable.defowner),tobjectdef(srsymtable.defowner),s,srsym,srsymtable) then
|
||||
begin
|
||||
result:=true;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
stackitem:=stackitem^.next;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user