I want benchs :) Stef On Oct 7, 2009, at 9:24 PM, Igor Stasenko wrote:
2009/10/7 Lukas Renggli <renggli@gmail.com>:
Okay, if you need to visit pragmas as well, then why don't do it:
Yes, this is important. Otherwise you can't browser for references to a Pragma anymore.
CompiledMethod>>refersToLiteral: aLiteral
self literalsDo: [ blablah ]. self pragmas do: [ blah blah ]
^ false
which makes this method immune from any future changes in CompiledMethod format. So, we don't need to think about 'fixing' it again and again, each time we need to hack things.
This would introduce a major performance bottleneck for commonly used Smalltalk features like senders/implementors/references.
Well, before stating that, we should measure it. My point, that we should keep a minimum methods, which is aware of a deep internals of method's format. Then it would be easier to maintain it.
Lukas
-- Lukas Renggli http://www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project