public void pushmethod(String name, IRScope scope, Signature signature, boolean specificArity) { clsData().pushmethod(name, scope, signature, specificArity); method().startMethod(); }
public void pushmethod(String name, IRScope scope, Signature signature, boolean specificArity) { clsData().pushmethod(name, scope, signature, specificArity); method().startMethod(); }
public void pushmethod(String name, int arity) { clsData().pushmethod(name, arity); method().startMethod(); // locals for ThreadContext and self methodData().local("$context", JVM.THREADCONTEXT_TYPE); methodData().local("$scope", JVM.STATICSCOPE_TYPE); methodData().local("$self");//, JVM.OBJECT_TYPE); for (int i = 0; i < arity; i++) { // incoming arguments methodData().local("$argument" + i); } methodData().local("$block", Type.getType(Block.class)); // TODO: this should go into the PushBinding instruction methodData().local("$dynamicScope"); }
public void pushmethod(String name, int arity) { clsData().pushmethod(name, arity); method().startMethod(); // locals for ThreadContext and self methodData().local("$context", JVM.THREADCONTEXT_TYPE); methodData().local("$scope", JVM.STATICSCOPE_TYPE); methodData().local("$self");//, JVM.OBJECT_TYPE); for (int i = 0; i < arity; i++) { // incoming arguments methodData().local("$argument" + i); } methodData().local("$block", Type.getType(Block.class)); // TODO: this should go into the PushBinding instruction methodData().local("$dynamicScope"); }