@Override public RubyNode createInvokePrimitiveNode( RubyContext context, SourceSection sourceSection, RubyNode[] arguments) { return MethodNodesFactory.CallNodeFactory.create( context, sourceSection, new RubyNode[] { new ObjectLiteralNode(context, sourceSection, method), new ObjectArrayNode(arguments), new ReadBlockNode(NotProvided.INSTANCE) }); }
@Override public RubyNode createCallPrimitiveNode( RubyContext context, SourceSection sourceSection, ReturnID returnID) { return new CallRubiniusPrimitiveNode( context, sourceSection, MethodNodesFactory.CallNodeFactory.create( context, sourceSection, new RubyNode[] { new ObjectLiteralNode(context, sourceSection, method), new ReadAllArgumentsNode(), new ReadBlockNode(NotProvided.INSTANCE) }), returnID); }