|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] [ANN] Mirrors for GST |
Date: | Mon, 27 Feb 2012 08:49:40 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
On 02/26/2012 08:07 PM, Gwenaël Casaccio wrote: > > classFor: anObject [ > ^ ##(MirrorPrimitive class >> privateClass) valueWithReceiver: > anObject withArguments: #() > ] > > ##() is interesting because the compiled method (thus the primitive call) > will be "injected" as a literal thus I don't need to do a lookup all the > time (for getting the compiled method). Now I can execute the primitive > on the object. What about for even faster execution: classFor: anObject [ <primitive VMpr_MirrorPrimitive_executePrimitive> ^##(VMpr_Object_class) ] Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |