public void Splat(Splat splat) { visit(splat.getArray()); } public void StandardError(StandardError standarderror) { }
public void Splat(Splat splat) { visit(splat.getArray()); } public void StandardError(StandardError standarderror) { }
@Override public void Splat(Splat splat) { visit(splat.getArray()); // Splat is now only used in call arg lists where it is guaranteed that // the splat-arg is an array. // // It is: // - either a result of a args-cat/args-push (which generate an array), // - or a result of a BuildSplatInstr (which also generates an array), // - or a rest-arg that has been received (which also generates an array) // and is being passed via zsuper. // // In addition, since this only shows up in call args, the array itself is // never modified. The array elements are extracted out and inserted into // a java array. So, a dup is not required either. // // So, besides retrieving the array, nothing more to be done here! }
@Override public void Splat(Splat splat) { visit(splat.getArray()); // Splat is now only used in call arg lists where it is guaranteed that // the splat-arg is an array. // // It is: // - either a result of a args-cat/args-push (which generate an array), // - or a result of a BuildSplatInstr (which also generates an array), // - or a rest-arg that has been received (which also generates an array) // and is being passed via zsuper. // // In addition, since this only shows up in call args, the array itself is // never modified. The array elements are extracted out and inserted into // a java array. So, a dup is not required either. // // So, besides retrieving the array, nothing more to be done here! }
@Override public void encode(IRWriterEncoder e) { super.encode(e); e.encode(getArray()); }
@Override public void encode(IRWriterEncoder e) { super.encode(e); e.encode(getArray()); }
@Override public void Splat(Splat splat) { jvm.method().loadContext(); visit(splat.getArray()); jvm.method().invokeHelper("irSplat", RubyArray.class, ThreadContext.class, IRubyObject.class); }
@Override public void Splat(Splat splat) { jvm.method().loadContext(); visit(splat.getArray()); jvm.method().invokeHelper("irSplat", RubyArray.class, ThreadContext.class, IRubyObject.class); }