Top Fields Constructors Methods
org.jruby.internal.runtime.methods

public Class CompiledIRNoProtocolMethod

extends AbstractIRMethod
Class Inheritance
Imports
java.lang.invoke.MethodHandle, org.jruby.RubyModule, org.jruby.internal.runtime.AbstractIRMethod, .SplitSuperState, org.jruby.ir.IRMethod, org.jruby.ir.interpreter.ExitableInterpreterContext, .InterpreterContext, org.jruby.parser.StaticScope, org.jruby.runtime.ArgumentDescriptor, .Block, .DynamicScope, .Helpers, .ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private final boolean
private final MethodHandle
Inherited from org.jruby.internal.runtime.AbstractIRMethod:
callCountinterpreterContextlinemethodsignaturestaticScope

Constructor Summary

AccessConstructor and Description
public
CompiledIRNoProtocolMethod(MethodHandle handle, StaticScope scope, String file, int line, RubyModule implementationClass, boolean needsDynamicScope)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public IRubyObject
call(ThreadContext
The thread context for the currently executing thread
context
,
IRubyObject
The 'self' or 'receiver' object to use for this call
self
,
RubyModule
The Ruby class against which this method is binding
clazz
,
String
The incoming name used to invoke this method
name
,
IRubyObject[]
The argument list to this invocation
args
,
Block
The block passed to this invocation
block
)

Implements abstract org.jruby.internal.runtime.methods.DynamicMethod.call.

The minimum 'call' method required for a dynamic method handle.

public IRubyObject
public IRubyObject
public IRubyObject
public InterpreterContext
public void
public ArgumentDescriptor[]
getArgumentDescriptors()

Overrides org.jruby.internal.runtime.AbstractIRMethod.getArgumentDescriptors.

Implements org.jruby.internal.runtime.methods.IRMethodArgs.getArgumentDescriptors.

Get the array of ArgumentDescriptors that represent the arguments to this method.

private ExitableReturn
protected void
protected void
protected void
pre(ThreadContext context, StaticScope staticScope, RubyModule implementationClass, IRubyObject self, String name, Block block)

protected void
preSplit(InterpreterContext ic, ThreadContext context, IRubyObject self, String name, Block block, RubyModule implClass, DynamicScope scope)

protected void
public SplitSuperState<MethodSplitState>
Inherited from org.jruby.internal.runtime.AbstractIRMethod:
buildclonedupgetAritygetFilegetInstanceVariableNamesgetIRScopegetLinegetMethodDatagetRuby2KeywordsgetSignaturegetStaticScopeisBuildCompleteneedsToFindImplementersetCallCountsetRuby2KeywordstoStringtryJit

Field Detail

needsDynamicScopeback to summary
private final boolean needsDynamicScope
variableback to summary
private final MethodHandle variable

Constructor Detail

CompiledIRNoProtocolMethodback to summary
public CompiledIRNoProtocolMethod(MethodHandle handle, StaticScope scope, String file, int line, RubyModule implementationClass, boolean needsDynamicScope)

Method Detail

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block)

Overrides org.jruby.internal.runtime.methods.DynamicMethod.call.

Annotations
@Override
callback to summary
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block)

Implements abstract org.jruby.internal.runtime.methods.DynamicMethod.call.

Doc from org.jruby.internal.runtime.methods.DynamicMethod.call.

The minimum 'call' method required for a dynamic method handle. Subclasses must implement this method, but may implement the other signatures to provide faster, non-boxing call paths. Typically subclasses will implement this method to check variable arity calls, then performing a specific-arity invocation to the appropriate method or performing variable-arity logic in-line.

Parameters
context:ThreadContext

The thread context for the currently executing thread

self:IRubyObject

The 'self' or 'receiver' object to use for this call

clazz:RubyModule

The Ruby class against which this method is binding

name:String

The incoming name used to invoke this method

args:IRubyObject[]

The argument list to this invocation

block:Block

The block passed to this invocation

Returns:IRubyObject

The result of the call

Annotations
@Override
callback to summary
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block)

Overrides org.jruby.internal.runtime.methods.DynamicMethod.call.

Annotations
@Override
callback to summary
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block)

Overrides org.jruby.internal.runtime.methods.DynamicMethod.call.

Annotations
@Override
callback to summary
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)

Overrides org.jruby.internal.runtime.methods.DynamicMethod.call.

Annotations
@Override
ensureInstrsReadyback to summary
public InterpreterContext ensureInstrsReady()

Overrides org.jruby.internal.runtime.AbstractIRMethod.ensureInstrsReady.

Annotations
@Override
finishSplitCallback to summary
public void finishSplitCall(SplitSuperState<T extends InternalSplitState> state)

Implements abstract org.jruby.internal.runtime.AbstractIRMethod.finishSplitCall.

Annotations
@Override
getArgumentDescriptorsback to summary
public ArgumentDescriptor[] getArgumentDescriptors()

Overrides org.jruby.internal.runtime.AbstractIRMethod.getArgumentDescriptors.

Implements org.jruby.internal.runtime.methods.IRMethodArgs.getArgumentDescriptors.

Doc from org.jruby.internal.runtime.methods.IRMethodArgs.getArgumentDescriptors.

Get the array of ArgumentDescriptors that represent the arguments to this method.

Returns:ArgumentDescriptor[]

this methods argument descriptors

INTERPRET_METHODback to summary
private ExitableReturn INTERPRET_METHOD(MethodSplitState state, IRubyObject[] args, Block block)
postback to summary
protected void post(ThreadContext context)
postback to summary
protected void post(InterpreterContext ic, ThreadContext context)
preback to summary
protected void pre(ThreadContext context, StaticScope staticScope, RubyModule implementationClass, IRubyObject self, String name, Block block)
preSplitback to summary
protected void preSplit(InterpreterContext ic, ThreadContext context, IRubyObject self, String name, Block block, RubyModule implClass, DynamicScope scope)
printMethodIRback to summary
protected void printMethodIR()

Implements abstract org.jruby.internal.runtime.AbstractIRMethod.printMethodIR.

Annotations
@Override
startSplitSuperCallback to summary
public SplitSuperState<MethodSplitState> startSplitSuperCall(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block)

Implements abstract org.jruby.internal.runtime.AbstractIRMethod.startSplitSuperCall.

Annotations
@Override