| Modifier and Type | Field and Description |
|---|---|
| protected final Arity | |
| private volatile NativeInvoker | |
| public static final boolean | |
| private final NativeInvoker | |
| protected final Function | |
| private JITHandle | |
| public static final boolean | |
| protected final Signature |
| Access | Constructor and Description |
|---|---|
| public | DefaultMethod(RubyModule implementationClass, Function function, Signature signature, NativeInvoker defaultInvoker)
|
| Modifier and Type | Method and Description |
|---|---|
| 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 first argument to this invocation args)Overrides org. A default implementation of n-arity, non-block 'call' method, which simply calls the n-arity, block-receiving version with the arg list and Block.NULL_BLOCK. |
| 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. The minimum 'call' method required for a dynamic method handle. |
| public final DynamicMethod | dup()
Implements abstract org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. |
| public final NativeInvoker | |
| public final Arity | getArity()
Overrides org.
Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. |
| pack-priv CallContext | |
| pack-priv long | |
| private synchronized JITHandle | |
| public DynamicMethod | |
| protected final NativeInvoker | |
| protected final NativeInvoker | |
| public final boolean | isNative()
Overrides org. Returns true if this method is backed by native (i.e. Java) code. |
| private synchronized NativeInvoker |
| arity | back to summary |
|---|---|
| protected final Arity arity | |
| compiledInvoker | back to summary |
|---|---|
| private volatile NativeInvoker compiledInvoker | |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG | |
| defaultInvoker | back to summary |
|---|---|
| private final NativeInvoker defaultInvoker | |
| function | back to summary |
|---|---|
| protected final Function function | |
| jitHandle | back to summary |
|---|---|
| private JITHandle jitHandle | |
| REIFY | back to summary |
|---|---|
| public static final boolean REIFY | |
| signature | back to summary |
|---|---|
| protected final Signature signature | |
| DefaultMethod | back to summary |
|---|---|
| public DefaultMethod(RubyModule implementationClass, Function function, Signature signature, NativeInvoker defaultInvoker) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args) Overrides org. Doc from org. A default implementation of n-arity, non-block 'call' method, which simply calls the n-arity, block-receiving version with the arg list and Block.NULL_BLOCK.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) Implements abstract org. Doc from org. 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.
| |
| dup | back to summary |
|---|---|
| public final DynamicMethod dup() Implements abstract org. Doc from org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. It is not required that this method produce a new object if the semantics of the DynamicMethod subtype do not require such.
| |
| forceCompilation | back to summary |
|---|---|
| public final NativeInvoker forceCompilation() | |
| getArity | back to summary |
|---|---|
| public final Arity getArity() Overrides org. Doc from org. Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. This arity may or may not reflect the actual specific or variable arities of the referenced method.
| |
| getCallContext | back to summary |
|---|---|
| pack-priv CallContext getCallContext() | |
| getFunctionAddress | back to summary |
|---|---|
| pack-priv long getFunctionAddress() | |
| getJITHandle | back to summary |
|---|---|
| private synchronized JITHandle getJITHandle() | |
| getMethodForCaching | back to summary |
|---|---|
| public DynamicMethod getMethodForCaching() Implements org. | |
| getNativeInvoker | back to summary |
|---|---|
| protected final NativeInvoker getNativeInvoker()
Deprecated
| |
| getNativeInvoker | back to summary |
|---|---|
| protected final NativeInvoker getNativeInvoker(ThreadContext context) | |
| isNative | back to summary |
|---|---|
| public final boolean isNative() Overrides org. Doc from org. Returns true if this method is backed by native (i.e. Java) code.
| |
| tryCompilation | back to summary |
|---|---|
| private synchronized NativeInvoker tryCompilation(ThreadContext context) | |