[fpc-devel] Inline methods

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Jan 16 13:17:52 CET 2013


On 16 Jan 2013, at 12:16, Ludo Brands wrote:

> When the method is called from outside the class then it is inlined  
> (x64 linux):
[snip]
> But when the method is called from inside the class then a call is  
> used:
[snip]
> Using Self.IsFull results in the same code.
>
> FPC 2.6.0 and 2.7.1 from today.
>
> A bug?

Are those calls before or after the method body appears in the source  
code? The compiler cannot inline anything for which it hasn't parsed  
the source code yet.


Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130116/934785d8/attachment.html>


More information about the fpc-devel mailing list