Package | Description |
---|---|
org.jruby.ir.runtime | |
org.jruby.ir.targets |
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
IRRuntimeHelpers.callOptimizedAref(ThreadContext context,
IRubyObject caller,
IRubyObject target,
RubyString keyStr,
CallSite site) |
static IRubyObject |
IRRuntimeHelpers.classSuperSplatArgs(ThreadContext context,
IRubyObject self,
String methodName,
RubyModule definingModule,
IRubyObject[] args,
Block block,
boolean[] splatMap) |
static RubyHash |
IRRuntimeHelpers.constructHashFromArray(Ruby runtime,
IRubyObject[] pairs) |
static IRScope |
IRRuntimeHelpers.decodeScopeFromBytes(Ruby runtime,
byte[] scopeBytes,
String filename) |
static void |
IRRuntimeHelpers.defCompiledClassMethod(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope method,
IRubyObject obj) |
static void |
IRRuntimeHelpers.defCompiledClassMethod(ThreadContext context,
java.lang.invoke.MethodHandle variable,
java.lang.invoke.MethodHandle specific,
int specificArity,
IRScope method,
IRubyObject obj) |
static void |
IRRuntimeHelpers.defCompiledInstanceMethod(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope method,
DynamicScope currDynScope,
IRubyObject self) |
static void |
IRRuntimeHelpers.defCompiledInstanceMethod(ThreadContext context,
java.lang.invoke.MethodHandle variable,
java.lang.invoke.MethodHandle specific,
int specificArity,
IRScope method,
DynamicScope currDynScope,
IRubyObject self) |
static void |
IRRuntimeHelpers.defCompiledIRClassMethod(ThreadContext context,
IRubyObject obj,
java.lang.invoke.MethodHandle handle,
String rubyName,
IRScope irScope) |
static void |
IRRuntimeHelpers.defCompiledIRMethod(ThreadContext context,
java.lang.invoke.MethodHandle handle,
String rubyName,
DynamicScope currDynScope,
IRubyObject self,
IRScope irScope) |
static RubyHash |
IRRuntimeHelpers.dupKwargsHashAndPopulateFromArray(ThreadContext context,
RubyHash dupHash,
IRubyObject[] pairs) |
static RubyFixnum |
IRRuntimeHelpers.getArgScopeDepth(ThreadContext context,
StaticScope currScope) |
static Block |
IRRuntimeHelpers.getBlockFromObject(ThreadContext context,
Object value) |
static VariableAccessor |
IRRuntimeHelpers.getVariableAccessorForRead(IRubyObject object,
String name) |
static VariableAccessor |
IRRuntimeHelpers.getVariableAccessorForWrite(IRubyObject object,
String name) |
static IRubyObject |
IRRuntimeHelpers.getVariableWithAccessor(IRubyObject self,
VariableAccessor accessor,
ThreadContext context,
String name) |
static IRubyObject |
IRRuntimeHelpers.handleBreakAndReturnsInLambdas(ThreadContext context,
StaticScope scope,
DynamicScope dynScope,
Object exc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handleNonlocalReturn(StaticScope scope,
DynamicScope dynScope,
Object rjExc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handlePropagatedBreak(ThreadContext context,
DynamicScope dynScope,
Object bjExc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.inheritedSearchConst(ThreadContext context,
IRubyObject cmVal,
String constName,
boolean noPrivateConsts) |
static IRubyObject |
IRRuntimeHelpers.instanceSuperSplatArgs(ThreadContext context,
IRubyObject self,
String methodName,
RubyModule definingModule,
IRubyObject[] args,
Block block,
boolean[] splatMap) |
static IRubyObject |
IRRuntimeHelpers.invokeModuleBody(ThreadContext context,
DynamicMethod method,
Block block) |
static RubyArray |
IRRuntimeHelpers.irSplat(ThreadContext context,
IRubyObject ary) |
static IRubyObject |
IRRuntimeHelpers.isDefinedBackref(ThreadContext context) |
static IRubyObject |
IRRuntimeHelpers.isDefinedCall(ThreadContext context,
IRubyObject self,
IRubyObject receiver,
String name) |
static IRubyObject |
IRRuntimeHelpers.isDefinedClassVar(ThreadContext context,
RubyModule receiver,
String name) |
static IRubyObject |
IRRuntimeHelpers.isDefinedConstantOrMethod(ThreadContext context,
IRubyObject receiver,
String name) |
static IRubyObject |
IRRuntimeHelpers.isDefinedGlobal(ThreadContext context,
String name) |
static IRubyObject |
IRRuntimeHelpers.isDefinedInstanceVar(ThreadContext context,
IRubyObject receiver,
String name) |
static IRubyObject |
IRRuntimeHelpers.isDefinedMethod(ThreadContext context,
IRubyObject receiver,
String name,
boolean checkIfPublic) |
static IRubyObject |
IRRuntimeHelpers.isDefinedNthRef(ThreadContext context,
int matchNumber) |
static IRubyObject |
IRRuntimeHelpers.isDefinedSuper(ThreadContext context,
IRubyObject receiver) |
static IRubyObject |
IRRuntimeHelpers.lexicalSearchConst(ThreadContext context,
StaticScope staticScope,
String constName) |
static IRubyObject |
IRRuntimeHelpers.mergeKeywordArguments(ThreadContext context,
IRubyObject restKwarg,
IRubyObject explcitKwarg) |
static org.jruby.util.ByteList |
IRRuntimeHelpers.newByteListFromRaw(Ruby runtime,
String str,
String encoding) |
static DynamicMethod |
IRRuntimeHelpers.newCompiledClassBody(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope irClassBody,
Object container,
Object superClass) |
static DynamicMethod |
IRRuntimeHelpers.newCompiledMetaClass(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope metaClassBody,
IRubyObject obj)
Construct a new DynamicMethod to wrap the given IRModuleBody and singletonizable object.
|
static DynamicMethod |
IRRuntimeHelpers.newCompiledModuleBody(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope irModule,
Object rubyContainer) |
static RubyRegexp |
IRRuntimeHelpers.newDynamicRegexp(ThreadContext context,
IRubyObject[] pieces,
int embeddedOptions) |
static RubyRegexp |
IRRuntimeHelpers.newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
int embeddedOptions) |
static RubyRegexp |
IRRuntimeHelpers.newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
int embeddedOptions) |
static RubyRegexp |
IRRuntimeHelpers.newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
int embeddedOptions) |
static RubyRegexp |
IRRuntimeHelpers.newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
int embeddedOptions) |
static RubyRegexp |
IRRuntimeHelpers.newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
IRubyObject arg4,
int embeddedOptions) |
static RubyString |
IRRuntimeHelpers.newFrozenStringFromRaw(ThreadContext context,
String str,
String encoding,
int cr,
String file,
int line) |
static FunctionalCachingCallSite |
IRRuntimeHelpers.newFunctionalCachingCallSite(String name) |
static RubyRegexp |
IRRuntimeHelpers.newLiteralRegexp(ThreadContext context,
org.jruby.util.ByteList source,
int embeddedOptions) |
static NormalCachingCallSite |
IRRuntimeHelpers.newNormalCachingCallSite(String name) |
static RefinedCachingCallSite |
IRRuntimeHelpers.newRefinedCachingCallSite(String name,
String callType) |
static RaiseException |
IRRuntimeHelpers.newRequiredKeywordArgumentError(ThreadContext context,
String name) |
static RubyProc |
IRRuntimeHelpers.newSymbolProc(ThreadContext context,
String symbol,
String encoding)
Create a new Symbol.to_proc for the given symbol name and encoding.
|
static VariableCachingCallSite |
IRRuntimeHelpers.newVariableCachingCallSite(String name) |
static Block |
IRRuntimeHelpers.prepareBlock(ThreadContext context,
IRubyObject self,
DynamicScope scope,
BlockBody body) |
static IRubyObject[] |
IRRuntimeHelpers.prepareBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args,
boolean usesKwArgs) |
static IRubyObject[] |
IRRuntimeHelpers.prepareFixedBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args) |
static IRubyObject[] |
IRRuntimeHelpers.prepareNoBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args)
Check whether incoming args are zero length for a lambda, and no-op for non-lambda.
|
static IRubyObject[] |
IRRuntimeHelpers.prepareSingleBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args) |
static DynamicScope |
IRRuntimeHelpers.pushBlockDynamicScopeIfNeeded(ThreadContext context,
Block block,
boolean pushNewDynScope,
boolean reuseParentDynScope) |
static void |
IRRuntimeHelpers.pushExitBlock(ThreadContext context,
Block blk) |
static IRubyObject |
IRRuntimeHelpers.receivePostReqdArg(ThreadContext context,
IRubyObject[] args,
int preReqdArgsCount,
int postReqdArgsCount,
int argIndex,
boolean acceptsKeywordArgument) |
static IRubyObject |
IRRuntimeHelpers.restoreExceptionVar(ThreadContext context,
IRubyObject exc,
IRubyObject savedExc) |
static RubyEncoding |
IRRuntimeHelpers.retrieveEncoding(ThreadContext context,
String name) |
static org.jcodings.Encoding |
IRRuntimeHelpers.retrieveJCodingsEncoding(ThreadContext context,
String name) |
static IRubyObject |
IRRuntimeHelpers.returnOrRethrowSavedException(ThreadContext context,
IRubyObject value) |
static IRubyObject |
IRRuntimeHelpers.searchConst(ThreadContext context,
StaticScope staticScope,
String constName,
boolean noPrivateConsts) |
static void |
IRRuntimeHelpers.setVariableWithAccessor(IRubyObject self,
IRubyObject value,
VariableAccessor accessor) |
static IRubyObject[] |
IRRuntimeHelpers.singleBlockArgToArray(IRubyObject value) |
static IRubyObject |
IRRuntimeHelpers.updateBlockState(Block block,
IRubyObject self) |
Modifier and Type | Method and Description |
---|---|
static boolean |
InvokeSite.testClass(Object object,
Class clazz) |
static boolean |
InvokeSite.testMetaclass(RubyClass metaclass,
IRubyObject self) |
Copyright © 2001-2016 JRuby. All Rights Reserved.