Dec. 22, 2010
5:22 p.m.
On Wed, Dec 22, 2010 at 12:12 AM, Stéphane Ducasse < stephane.ducasse@inria.fr> wrote:
Hi guys
Ideally I would love to be able to use accessors as the abstraction layer that they can bring us: I mean the fact that we could avoid to have offset based bytecode means that we could reuse a lot more the methods (in special case - mixins and others).
Now I have a question does the JIT or the shortcut (not sure if this is in stackVM) blurry the cost of accessors vs. direct accesses?
Not yet. But IMO it would be straight-forward to add. The PIC design supports inserting extra code at a send site, which is the logical place to put the access code.
Does anybody run a benchmarck about self x vs x in Cog recently on a real app?
Stef
best Eliot