I'm going to refactor the method-binding logic in RubyModule to be simpler and use fewer DynamicMethod types, by having it accept a configuration object per method that says what sorts of per-call logic it needs. For example..

defineMethod("times", CallFrame.FULL, CallScope.NONE, BindType.INSTANCE)

and the define logic will do the right thing producing a fast dispatch that frames, creates no scope, and binds to an instance method. I haven't worked out the structure of the flags, but I'll keep you posted. It will allow finer-grained control over how methods are bound, and provide a mechanism for the compiler to start proactively reducing call overhead when possible.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to