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
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel