On 16 Jan 2013, at 13:38, Michael Van Canneyt wrote:
On Wed, 16 Jan 2013, Jonas Maebe wrote:
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.
Does that differ ? If so, then I should mention this in the
documentation !
Someone else also thought so in the past: http://lists.freepascal.org/lists/fpc-pascal/2009-November/023321.html
:)
Jonas
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel