public IRubyObject yieldArray(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass) { return body.yield(context, value, self, klass, true, binding, type); }
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0 }, null); } else { return yield(context, block, arg0); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) {
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0, arg1, arg2 }, null); } else { return yield(context, block, new IRubyObject[] { arg0, arg1, arg2 }, null); } }
public IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean aValue, Binding binding, Block.Type type, Block block) { return yield(context, value, self, klass, aValue, binding, type); }
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0, arg1, arg2 }, null); } else { return yield(context, block, new IRubyObject[] { arg0, arg1, arg2 }, null); } }
public IRubyObject yieldArray(ThreadContext context, IRubyObject value, IRubyObject self) { // SSS FIXME: Later on, we can move this code into IR insructions or // introduce a specialized entry-point when we know that this block has // explicit call protocol IR instructions. IRubyObject[] args = IRRuntimeHelpers.singleBlockArgToArray(value); return body.yield(context, this, args, self); }
public IRubyObject yieldSpecific(ThreadContext context, Block block) { if (canCallDirect()) { return yieldDirect(context, block, null, null); } else { return yield(context, block, null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0) {
public IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type) { args = prepareArgumentsForCall(context, args, type); return yield(context, RubyArray.newArrayNoCopy(context.runtime, args), null, null, true, binding, type); }
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0, arg1 }, null); } else { return yield(context, block, new IRubyObject[] { arg0, arg1 }, null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) {
public IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type) { args = prepareArgumentsForCall(context, args, type); return yield(context, RubyArray.newArrayNoCopy(context.runtime, args), null, null, true, binding, type); }
public IRubyObject yieldSpecific(ThreadContext context, Block block) { if (canCallDirect()) { return yieldDirect(context, block, null, null); } else { return yield(context, block, null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0) {
public IRubyObject call(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Binding binding, Block.Type type) { IRubyObject[] args = new IRubyObject[] {arg0, arg1}; args = prepareArgumentsForCall(context, args, type); return yield(context, RubyArray.newArrayNoCopy(context.runtime, args), null, null, true, binding, type); } public IRubyObject call(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Binding binding,
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0 }, null); } else { return yield(context, block, arg0); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) {
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0) { IRubyObject[] args = new IRubyObject[] {arg0}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block) { IRubyObject[] args = IRubyObject.NULL_ARRAY; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } }
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { IRubyObject[] args = new IRubyObject[] {arg0, arg1, arg2}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block) { IRubyObject[] args = IRubyObject.NULL_ARRAY; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } }
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) { IRubyObject[] args = new IRubyObject[] {arg0, arg1}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args) { if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } }
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) { IRubyObject[] args = new IRubyObject[] {arg0, arg1}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, Block unusedBlock) {