public class IRRuntimeHelpers
extends java.lang.Object
Constructor and Description |
---|
IRRuntimeHelpers() |
Modifier and Type | Method and Description |
---|---|
static void |
aliasGlobalVariable(Ruby runtime,
java.lang.Object newName,
java.lang.Object oldName) |
static boolean |
anyTrue(boolean[] booleans) |
static IRubyObject |
asString(ThreadContext context,
IRubyObject caller,
IRubyObject target,
CallSite site)
asString using a given call site
|
static boolean[] |
buildSplatMap(Operand[] args) |
static IRubyObject |
callOptimizedAref(ThreadContext context,
IRubyObject caller,
IRubyObject target,
RubyString keyStr,
CallSite site) |
static void |
callTrace(ThreadContext context,
RubyEvent event,
java.lang.String name,
java.lang.String filename,
int line) |
static void |
checkArity(ThreadContext context,
StaticScope scope,
java.lang.Object[] args,
int required,
int opt,
boolean rest,
boolean receivesKwargs,
int restKey,
Block block) |
static void |
checkForExtraUnwantedKeywordArgs(ThreadContext context,
StaticScope scope,
RubyHash keywordArgs) |
static void |
checkForLJE(ThreadContext context,
DynamicScope currentScope,
boolean definedWithinMethod,
Block block) |
static IRubyObject |
classSuper(ThreadContext context,
IRubyObject self,
java.lang.String id,
RubyModule definingModule,
IRubyObject[] args,
Block block) |
static IRubyObject |
classSuperSplatArgs(ThreadContext context,
IRubyObject self,
java.lang.String methodName,
RubyModule definingModule,
IRubyObject[] args,
Block block,
boolean[] splatMap) |
static RubyHash |
constructHashFromArray(Ruby runtime,
IRubyObject[] pairs) |
static IRubyObject |
constructRestArg(ThreadContext context,
java.lang.Object[] args,
RubyHash keywordArguments,
int required,
int argIndex) |
static IRubyObject[] |
convertValueIntoArgArray(ThreadContext context,
IRubyObject value,
Signature signature,
boolean argIsArray) |
static IRScope |
decodeScopeFromBytes(Ruby runtime,
byte[] scopeBytes,
java.lang.String filename) |
static boolean[] |
decodeSplatmap(java.lang.String splatmapString) |
static void |
defCompiledClassMethod(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope method,
IRubyObject obj) |
static void |
defCompiledClassMethod(ThreadContext context,
java.lang.invoke.MethodHandle variable,
java.lang.invoke.MethodHandle specific,
int specificArity,
IRScope method,
IRubyObject obj) |
static void |
defCompiledInstanceMethod(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope method,
DynamicScope currDynScope,
IRubyObject self) |
static void |
defCompiledInstanceMethod(ThreadContext context,
java.lang.invoke.MethodHandle variable,
java.lang.invoke.MethodHandle specific,
int specificArity,
IRScope method,
DynamicScope currDynScope,
IRubyObject self) |
static void |
defineAlias(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
IRubyObject newName,
IRubyObject oldName) |
static void |
defInterpretedClassMethod(ThreadContext context,
IRScope method,
IRubyObject obj) |
static void |
defInterpretedInstanceMethod(ThreadContext context,
IRScope method,
DynamicScope currDynScope,
IRubyObject self) |
static RubyHash |
dupKwargsHashAndPopulateFromArray(ThreadContext context,
RubyHash dupHash,
IRubyObject[] pairs) |
static java.lang.String |
encodeSplatmap(boolean[] splatmap) |
static RubyHash |
extractKwargsHash(java.lang.Object[] args,
int requiredArgsCount,
boolean receivesKwargs)
Deprecated.
|
static RubyHash |
extractKwargsHash(ThreadContext context,
java.lang.Object[] args,
int requiredArgsCount,
boolean receivesKwargs) |
static IRubyObject |
extractOptionalArgument(RubyArray rubyArray,
int minArgsLength,
int index) |
static boolean |
feq(double v1,
double v2) |
static boolean |
fgt(double v1,
double v2) |
static RubyModule |
findInstanceMethodContainer(ThreadContext context,
DynamicScope currDynScope,
IRubyObject self) |
static boolean |
flt(double v1,
double v2) |
static RubyString |
freezeLiteralString(RubyString string) |
static RubyString |
freezeLiteralString(RubyString string,
ThreadContext context,
java.lang.String file,
int line) |
static IRubyObject[] |
frobnicateKwargsArgument(ThreadContext context,
IRubyObject[] args,
int requiredArgsCount) |
static RubyFixnum |
getArgScopeDepth(ThreadContext context,
StaticScope currScope) |
static Block |
getBlockFromObject(ThreadContext context,
java.lang.Object value) |
static RubyString |
getFileNameStringFromScope(ThreadContext context,
StaticScope currScope) |
static RubyModule |
getModuleFromScope(ThreadContext context,
StaticScope scope,
IRubyObject arg) |
static RubyClass |
getObject(ThreadContext context) |
static IRubyObject |
getPreArgSafe(ThreadContext context,
IRubyObject[] args,
int argIndex) |
static Block |
getRefinedBlockFromObject(ThreadContext context,
StaticScope scope,
java.lang.Object value) |
static RubyClass |
getStandardError(ThreadContext context) |
static VariableAccessor |
getVariableAccessorForRead(IRubyObject object,
java.lang.String name) |
static VariableAccessor |
getVariableAccessorForWrite(IRubyObject object,
java.lang.String name) |
static IRubyObject |
getVariableWithAccessor(IRubyObject self,
VariableAccessor accessor,
ThreadContext context,
java.lang.String name) |
static IRubyObject |
handleBreakAndReturnsInLambdas(ThreadContext context,
DynamicScope dynScope,
java.lang.Object exc,
Block block) |
static IRubyObject |
handleNonlocalReturn(DynamicScope currentScope,
java.lang.Object rjExc) |
static IRubyObject |
handlePropagatedBreak(ThreadContext context,
DynamicScope dynScope,
java.lang.Object bjExc) |
static boolean |
ieq(long v1,
long v2) |
static boolean |
igt(long v1,
long v2) |
static boolean |
ilt(long v1,
long v2) |
static IRubyObject |
inheritedSearchConst(ThreadContext context,
IRubyObject cmVal,
java.lang.String constName,
boolean noPrivateConsts) |
static IRubyObject |
initiateBreak(ThreadContext context,
DynamicScope dynScope,
IRubyObject breakValue,
Block block) |
static IRubyObject |
initiateNonLocalReturn(DynamicScope currentScope,
Block block,
IRubyObject returnValue) |
static boolean |
inLambda(Block.Type blockType) |
static boolean |
inMethod(Block.Type blockType) |
static boolean |
inNonMethodBodyLambda(StaticScope scope,
Block.Type blockType) |
static boolean |
inProc(Block.Type blockType) |
static boolean |
inProfileMode() |
static IRubyObject |
instanceSuper(ThreadContext context,
IRubyObject self,
java.lang.String id,
RubyModule definingModule,
IRubyObject[] args,
Block block) |
static IRubyObject |
instanceSuperSplatArgs(ThreadContext context,
IRubyObject self,
java.lang.String methodName,
RubyModule definingModule,
IRubyObject[] args,
Block block,
boolean[] splatMap) |
static IRubyObject |
invokeModuleBody(ThreadContext context,
DynamicMethod method) |
static IRubyObject |
invokeModuleBody(ThreadContext context,
DynamicMethod method,
Block block) |
static IRubyObject |
irNot(ThreadContext context,
IRubyObject obj) |
static IRubyObject |
irReqdArgMultipleAsgn(ThreadContext context,
RubyArray rubyArray,
int preArgsCount,
int index,
int postArgsCount) |
static int |
irReqdArgMultipleAsgnIndex(int n,
int preArgsCount,
int index,
int postArgsCount) |
static RubyArray |
irSplat(ThreadContext context,
IRubyObject ary) |
static IRubyObject |
irToAry(ThreadContext context,
IRubyObject value) |
static RubyBoolean |
isBlockGiven(ThreadContext context,
java.lang.Object blk) |
static boolean |
isDebug() |
static IRubyObject |
isDefinedBackref(ThreadContext context,
IRubyObject definedMessage) |
static IRubyObject |
isDefinedCall(ThreadContext context,
IRubyObject self,
IRubyObject receiver,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
isDefinedClassVar(ThreadContext context,
RubyModule receiver,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
isDefinedConstantOrMethod(ThreadContext context,
IRubyObject receiver,
java.lang.String name,
IRubyObject definedConstantMessage,
IRubyObject definedMethodMessage) |
static IRubyObject |
isDefinedGlobal(ThreadContext context,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
isDefinedInstanceVar(ThreadContext context,
IRubyObject receiver,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
isDefinedMethod(ThreadContext context,
IRubyObject receiver,
java.lang.String name,
boolean checkIfPublic,
IRubyObject definedMessage) |
static IRubyObject |
isDefinedNthRef(ThreadContext context,
int matchNumber,
IRubyObject definedMessage) |
static IRubyObject |
isDefinedSuper(ThreadContext context,
IRubyObject receiver,
IRubyObject definedMessage) |
static IRubyObject |
isDefinedSuper(ThreadContext context,
IRubyObject receiver,
java.lang.String frameName,
RubyModule frameClass,
IRubyObject definedMessage) |
static IRubyObject |
isEQQ(ThreadContext context,
IRubyObject receiver,
IRubyObject value,
CallSite callSite,
boolean splattedValue) |
static IRubyObject |
isExceptionHandled(ThreadContext context,
IRubyObject excType,
java.lang.Object excObj) |
static IRubyObject |
lexicalSearchConst(ThreadContext context,
StaticScope staticScope,
java.lang.String constName) |
static IRubyObject |
match3(ThreadContext context,
RubyRegexp regexp,
IRubyObject argValue) |
static IRubyObject |
mergeKeywordArguments(ThreadContext context,
IRubyObject restKwarg,
IRubyObject explicitKwarg) |
static boolean |
needsSplatting(boolean[] splatmap) |
static RubyArray |
newArray(ThreadContext context) |
static RubyArray |
newArray(ThreadContext context,
IRubyObject obj) |
static RubyArray |
newArray(ThreadContext context,
IRubyObject obj0,
IRubyObject obj1) |
static ByteList |
newByteListFromRaw(Ruby runtime,
java.lang.String str,
java.lang.String encoding) |
static DynamicMethod |
newCompiledClassBody(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope irClassBody,
java.lang.Object container,
java.lang.Object superClass) |
static DynamicMethod |
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 |
newCompiledModuleBody(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope irModule,
java.lang.Object rubyContainer) |
static RubyComplex |
newComplexRaw(ThreadContext context,
IRubyObject i) |
static RubySymbol |
newDSymbol(ThreadContext context,
IRubyObject symbol) |
static RubyRegexp |
newDynamicRegexp(ThreadContext context,
IRubyObject[] pieces,
int embeddedOptions) |
static RubyRegexp |
newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
int embeddedOptions) |
static RubyRegexp |
newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
int embeddedOptions) |
static RubyRegexp |
newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
int embeddedOptions) |
static RubyRegexp |
newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
int embeddedOptions) |
static RubyRegexp |
newDynamicRegexp(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
IRubyObject arg4,
int embeddedOptions) |
static RubyString |
newFrozenString(ThreadContext context,
ByteList bytelist,
int coderange,
java.lang.String file,
int line) |
static RubyString |
newFrozenStringFromRaw(ThreadContext context,
java.lang.String str,
java.lang.String encoding,
int cr,
java.lang.String file,
int line) |
static FunctionalCachingCallSite |
newFunctionalCachingCallSite(java.lang.String name) |
static DynamicMethod |
newInterpretedClassBody(ThreadContext context,
IRScope irClassBody,
java.lang.Object container,
java.lang.Object superClass) |
static DynamicMethod |
newInterpretedMetaClass(Ruby runtime,
IRScope metaClassBody,
IRubyObject obj)
Construct a new DynamicMethod to wrap the given IRModuleBody and singletonizable object.
|
static DynamicMethod |
newInterpretedModuleBody(ThreadContext context,
IRScope irModule,
java.lang.Object rubyContainer)
Construct a new DynamicMethod to wrap the given IRModuleBody and singletonizable object.
|
static RubyProc |
newLambdaProc(ThreadContext context,
Block block) |
static RubyRegexp |
newLiteralRegexp(ThreadContext context,
ByteList source,
int embeddedOptions) |
static RubyRegexp |
newLiteralRegexp(ThreadContext context,
ByteList source,
RegexpOptions options) |
static MonomorphicCallSite |
newMonomorphicCallSite(java.lang.String name) |
static IRubyObject |
newProc(Ruby runtime,
Block block) |
static IRubyObject |
newProc(ThreadContext context,
Block block) |
static ProfilingCachingCallSite |
newProfilingCachingCallSite(CallType callType,
java.lang.String name,
IRScope scope,
long callSiteId) |
static RubyRational |
newRationalRaw(ThreadContext context,
IRubyObject num,
IRubyObject den) |
static RefinedCachingCallSite |
newRefinedCachingCallSite(java.lang.String name,
IRScope scope,
java.lang.String callType) |
static RaiseException |
newRequiredKeywordArgumentError(ThreadContext context,
java.lang.String id) |
static RubyModule |
newRubyClassFromIR(Ruby runtime,
IRScope irClassBody,
java.lang.Object superClass,
java.lang.Object container) |
static RubyModule |
newRubyModuleFromIR(ThreadContext context,
IRScope irModule,
java.lang.Object rubyContainer) |
static RubyProc |
newSymbolProc(ThreadContext context,
RubySymbol symbol)
Create a new Symbol.to_proc for the given symbol name and encoding.
|
static RubyProc |
newSymbolProc(ThreadContext context,
java.lang.String id)
Create a new Symbol.to_proc for the given symbol name and encoding.
|
static VariableCachingCallSite |
newVariableCachingCallSite(java.lang.String name) |
static IRubyObject |
nthMatch(ThreadContext context,
int matchNumber) |
static Block |
prepareBlock(ThreadContext context,
IRubyObject self,
DynamicScope scope,
BlockBody body) |
static IRubyObject[] |
prepareBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args,
boolean usesKwArgs) |
static IRubyObject[] |
prepareFixedBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args) |
static IRubyObject[] |
prepareNoBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args)
Check whether incoming args are zero length for a lambda, and no-op for non-lambda.
|
static DynamicScope |
prepareScriptScope(ThreadContext context,
StaticScope scope) |
static IRubyObject[] |
prepareSingleBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args) |
static DynamicScope |
pushBlockDynamicScopeIfNeeded(ThreadContext context,
Block block,
boolean pushNewDynScope,
boolean reuseParentDynScope) |
static DynamicScope |
pushBlockDynamicScopeNew(ThreadContext context,
Block block) |
static DynamicScope |
pushBlockDynamicScopeReuse(ThreadContext context,
Block block) |
static void |
pushExitBlock(ThreadContext context,
Block blk) |
static void |
pushExitBlock(ThreadContext context,
java.lang.Object blk) |
static void |
putClassVariable(ThreadContext context,
IRubyObject self,
RubyModule module,
java.lang.String id,
IRubyObject value) |
static void |
putConst(ThreadContext context,
IRubyObject self,
RubyModule module,
java.lang.String id,
IRubyObject value) |
static IRubyObject |
receiveKeywordArg(ThreadContext context,
IRubyObject[] args,
int required,
RubySymbol key,
boolean acceptsKeywordArgument) |
static IRubyObject |
receiveKeywordArg(ThreadContext context,
IRubyObject[] args,
int required,
java.lang.String id,
boolean acceptsKeywordArgument) |
static IRubyObject |
receiveKeywordRestArg(ThreadContext context,
IRubyObject[] args,
int required,
boolean keywordArgumentSupplied) |
static IRubyObject |
receiveOptArg(IRubyObject[] args,
int requiredArgs,
int preArgs,
int argIndex,
boolean acceptsKeywordArgument)
Deprecated.
|
static IRubyObject |
receiveOptArg(ThreadContext context,
IRubyObject[] args,
int requiredArgs,
int preArgs,
int argIndex,
boolean acceptsKeywordArgument) |
static IRubyObject |
receivePostReqdArg(ThreadContext context,
IRubyObject[] args,
int pre,
int opt,
boolean rest,
int post,
int argIndex,
boolean acceptsKeywordArgument) |
static IRubyObject |
receiveRestArg(ThreadContext context,
IRubyObject[] args,
int required,
int argIndex,
boolean acceptsKeywordArguments) |
static IRubyObject |
receiveRestArg(ThreadContext context,
java.lang.Object[] args,
int required,
int argIndex,
boolean acceptsKeywordArguments) |
static RubyEncoding |
retrieveEncoding(ThreadContext context,
java.lang.String name) |
static org.jcodings.Encoding |
retrieveJCodingsEncoding(ThreadContext context,
java.lang.String name) |
static IRubyObject |
returnOrRethrowSavedException(ThreadContext context,
IRubyObject value) |
static IRubyObject |
searchConst(ThreadContext context,
StaticScope staticScope,
java.lang.String constName,
boolean noPrivateConsts) |
static IRubyObject |
setCapturedVar(ThreadContext context,
IRubyObject matchRes,
java.lang.String id) |
static IRubyObject |
setInstanceVariable(IRubyObject self,
IRubyObject value,
java.lang.String name) |
static void |
setVariableWithAccessor(IRubyObject self,
IRubyObject value,
VariableAccessor accessor) |
static boolean |
shouldPrintIR(Ruby runtime)
If the ir.print property is enabled and we are not booting, or the ir.print.all property is enabled and we are
booting, return true to indicate IR should be printed.
|
static IRubyObject[] |
singleBlockArgToArray(IRubyObject value) |
static IRubyObject[] |
splatArguments(IRubyObject[] args,
boolean[] splatMap) |
static RubyArray |
splatArray(ThreadContext context,
IRubyObject ary,
boolean dupArray)
Call to_ary to get Array or die typing.
|
static IRubyObject |
svalue(ThreadContext context,
java.lang.Object val) |
static IRubyObject[] |
toAry(ThreadContext context,
IRubyObject[] args) |
static org.objectweb.asm.Type[] |
typesFromSignature(com.headius.invokebinder.Signature signature) |
static long |
unboxFixnum(IRubyObject val) |
static double |
unboxFloat(IRubyObject val) |
static IRubyObject |
undefMethod(ThreadContext context,
java.lang.Object nameArg,
DynamicScope currDynScope,
IRubyObject self) |
static IRubyObject |
unresolvedSuper(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block) |
static IRubyObject |
unresolvedSuperSplatArgs(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block,
boolean[] splatMap) |
static java.lang.Object |
unwrapRubyException(java.lang.Object excObj) |
static IRubyObject |
updateBlockState(Block block,
IRubyObject self) |
static IRubyObject |
useBindingSelf(Binding binding) |
static void |
warnSetConstInRefinement(ThreadContext context,
IRubyObject self) |
static IRubyObject |
yield(ThreadContext context,
Block b,
IRubyObject yieldVal,
boolean unwrapArray) |
static IRubyObject |
yieldSpecific(ThreadContext context,
Block b) |
static IRubyObject |
zSuper(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block) |
static IRubyObject |
zSuperSplatArgs(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block,
boolean[] splatMap) |
public static boolean inProfileMode()
public static boolean isDebug()
public static boolean inNonMethodBodyLambda(StaticScope scope, Block.Type blockType)
public static boolean inMethod(Block.Type blockType)
public static boolean inLambda(Block.Type blockType)
public static boolean inProc(Block.Type blockType)
public static void checkForLJE(ThreadContext context, DynamicScope currentScope, boolean definedWithinMethod, Block block)
public static IRubyObject initiateNonLocalReturn(DynamicScope currentScope, Block block, IRubyObject returnValue)
public static IRubyObject handleNonlocalReturn(DynamicScope currentScope, java.lang.Object rjExc) throws java.lang.RuntimeException
java.lang.RuntimeException
public static IRubyObject initiateBreak(ThreadContext context, DynamicScope dynScope, IRubyObject breakValue, Block block) throws java.lang.RuntimeException
java.lang.RuntimeException
public static IRubyObject handleBreakAndReturnsInLambdas(ThreadContext context, DynamicScope dynScope, java.lang.Object exc, Block block) throws java.lang.RuntimeException
java.lang.RuntimeException
public static IRubyObject returnOrRethrowSavedException(ThreadContext context, IRubyObject value)
public static IRubyObject handlePropagatedBreak(ThreadContext context, DynamicScope dynScope, java.lang.Object bjExc)
public static IRubyObject undefMethod(ThreadContext context, java.lang.Object nameArg, DynamicScope currDynScope, IRubyObject self)
public static double unboxFloat(IRubyObject val)
public static long unboxFixnum(IRubyObject val)
public static boolean flt(double v1, double v2)
public static boolean fgt(double v1, double v2)
public static boolean feq(double v1, double v2)
public static boolean ilt(long v1, long v2)
public static boolean igt(long v1, long v2)
public static boolean ieq(long v1, long v2)
public static java.lang.Object unwrapRubyException(java.lang.Object excObj)
public static IRubyObject isExceptionHandled(ThreadContext context, IRubyObject excType, java.lang.Object excObj)
public static IRubyObject isEQQ(ThreadContext context, IRubyObject receiver, IRubyObject value, CallSite callSite, boolean splattedValue)
public static IRubyObject newProc(Ruby runtime, Block block)
public static IRubyObject newProc(ThreadContext context, Block block)
public static RubyProc newLambdaProc(ThreadContext context, Block block)
public static IRubyObject yield(ThreadContext context, Block b, IRubyObject yieldVal, boolean unwrapArray)
public static IRubyObject yieldSpecific(ThreadContext context, Block b)
public static IRubyObject[] convertValueIntoArgArray(ThreadContext context, IRubyObject value, Signature signature, boolean argIsArray)
public static Block getBlockFromObject(ThreadContext context, java.lang.Object value)
public static Block getRefinedBlockFromObject(ThreadContext context, StaticScope scope, java.lang.Object value)
public static void checkArity(ThreadContext context, StaticScope scope, java.lang.Object[] args, int required, int opt, boolean rest, boolean receivesKwargs, int restKey, Block block)
public static IRubyObject[] frobnicateKwargsArgument(ThreadContext context, IRubyObject[] args, int requiredArgsCount)
public static boolean shouldPrintIR(Ruby runtime)
runtime
- the current runtimepublic static RubyHash extractKwargsHash(ThreadContext context, java.lang.Object[] args, int requiredArgsCount, boolean receivesKwargs)
@Deprecated public static RubyHash extractKwargsHash(java.lang.Object[] args, int requiredArgsCount, boolean receivesKwargs)
public static void checkForExtraUnwantedKeywordArgs(ThreadContext context, StaticScope scope, RubyHash keywordArgs)
public static DynamicScope prepareScriptScope(ThreadContext context, StaticScope scope)
public static IRubyObject match3(ThreadContext context, RubyRegexp regexp, IRubyObject argValue)
public static IRubyObject extractOptionalArgument(RubyArray rubyArray, int minArgsLength, int index)
public static IRubyObject isDefinedBackref(ThreadContext context, IRubyObject definedMessage)
public static IRubyObject isDefinedGlobal(ThreadContext context, java.lang.String name, IRubyObject definedMessage)
public static IRubyObject isDefinedNthRef(ThreadContext context, int matchNumber, IRubyObject definedMessage)
public static IRubyObject isDefinedClassVar(ThreadContext context, RubyModule receiver, java.lang.String name, IRubyObject definedMessage)
public static IRubyObject isDefinedInstanceVar(ThreadContext context, IRubyObject receiver, java.lang.String name, IRubyObject definedMessage)
public static IRubyObject isDefinedCall(ThreadContext context, IRubyObject self, IRubyObject receiver, java.lang.String name, IRubyObject definedMessage)
public static IRubyObject isDefinedConstantOrMethod(ThreadContext context, IRubyObject receiver, java.lang.String name, IRubyObject definedConstantMessage, IRubyObject definedMethodMessage)
public static IRubyObject isDefinedMethod(ThreadContext context, IRubyObject receiver, java.lang.String name, boolean checkIfPublic, IRubyObject definedMessage)
public static IRubyObject isDefinedSuper(ThreadContext context, IRubyObject receiver, IRubyObject definedMessage)
public static IRubyObject isDefinedSuper(ThreadContext context, IRubyObject receiver, java.lang.String frameName, RubyModule frameClass, IRubyObject definedMessage)
public static IRubyObject nthMatch(ThreadContext context, int matchNumber)
public static void defineAlias(ThreadContext context, IRubyObject self, DynamicScope currDynScope, IRubyObject newName, IRubyObject oldName)
public static RubyModule getModuleFromScope(ThreadContext context, StaticScope scope, IRubyObject arg)
public static IRubyObject mergeKeywordArguments(ThreadContext context, IRubyObject restKwarg, IRubyObject explicitKwarg)
public static RubyModule findInstanceMethodContainer(ThreadContext context, DynamicScope currDynScope, IRubyObject self)
public static RubyBoolean isBlockGiven(ThreadContext context, java.lang.Object blk)
public static IRubyObject receiveRestArg(ThreadContext context, java.lang.Object[] args, int required, int argIndex, boolean acceptsKeywordArguments)
public static IRubyObject receiveRestArg(ThreadContext context, IRubyObject[] args, int required, int argIndex, boolean acceptsKeywordArguments)
public static IRubyObject constructRestArg(ThreadContext context, java.lang.Object[] args, RubyHash keywordArguments, int required, int argIndex)
public static IRubyObject receivePostReqdArg(ThreadContext context, IRubyObject[] args, int pre, int opt, boolean rest, int post, int argIndex, boolean acceptsKeywordArgument)
public static IRubyObject receiveOptArg(ThreadContext context, IRubyObject[] args, int requiredArgs, int preArgs, int argIndex, boolean acceptsKeywordArgument)
@Deprecated public static IRubyObject receiveOptArg(IRubyObject[] args, int requiredArgs, int preArgs, int argIndex, boolean acceptsKeywordArgument)
public static IRubyObject getPreArgSafe(ThreadContext context, IRubyObject[] args, int argIndex)
public static IRubyObject receiveKeywordArg(ThreadContext context, IRubyObject[] args, int required, java.lang.String id, boolean acceptsKeywordArgument)
public static IRubyObject receiveKeywordArg(ThreadContext context, IRubyObject[] args, int required, RubySymbol key, boolean acceptsKeywordArgument)
public static IRubyObject receiveKeywordRestArg(ThreadContext context, IRubyObject[] args, int required, boolean keywordArgumentSupplied)
public static IRubyObject setCapturedVar(ThreadContext context, IRubyObject matchRes, java.lang.String id)
public static IRubyObject instanceSuperSplatArgs(ThreadContext context, IRubyObject self, java.lang.String methodName, RubyModule definingModule, IRubyObject[] args, Block block, boolean[] splatMap)
public static IRubyObject instanceSuper(ThreadContext context, IRubyObject self, java.lang.String id, RubyModule definingModule, IRubyObject[] args, Block block)
public static IRubyObject classSuperSplatArgs(ThreadContext context, IRubyObject self, java.lang.String methodName, RubyModule definingModule, IRubyObject[] args, Block block, boolean[] splatMap)
public static IRubyObject classSuper(ThreadContext context, IRubyObject self, java.lang.String id, RubyModule definingModule, IRubyObject[] args, Block block)
public static IRubyObject unresolvedSuperSplatArgs(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block, boolean[] splatMap)
public static IRubyObject unresolvedSuper(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
public static IRubyObject zSuperSplatArgs(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block, boolean[] splatMap)
public static IRubyObject zSuper(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
public static IRubyObject[] splatArguments(IRubyObject[] args, boolean[] splatMap)
public static java.lang.String encodeSplatmap(boolean[] splatmap)
public static boolean[] decodeSplatmap(java.lang.String splatmapString)
public static boolean[] buildSplatMap(Operand[] args)
public static boolean anyTrue(boolean[] booleans)
public static boolean needsSplatting(boolean[] splatmap)
public static final org.objectweb.asm.Type[] typesFromSignature(com.headius.invokebinder.Signature signature)
public static RubyString newFrozenStringFromRaw(ThreadContext context, java.lang.String str, java.lang.String encoding, int cr, java.lang.String file, int line)
public static final ByteList newByteListFromRaw(Ruby runtime, java.lang.String str, java.lang.String encoding)
public static RubyEncoding retrieveEncoding(ThreadContext context, java.lang.String name)
public static org.jcodings.Encoding retrieveJCodingsEncoding(ThreadContext context, java.lang.String name)
public static RubyHash constructHashFromArray(Ruby runtime, IRubyObject[] pairs)
public static RubyHash dupKwargsHashAndPopulateFromArray(ThreadContext context, RubyHash dupHash, IRubyObject[] pairs)
public static IRubyObject searchConst(ThreadContext context, StaticScope staticScope, java.lang.String constName, boolean noPrivateConsts)
public static IRubyObject inheritedSearchConst(ThreadContext context, IRubyObject cmVal, java.lang.String constName, boolean noPrivateConsts)
public static IRubyObject lexicalSearchConst(ThreadContext context, StaticScope staticScope, java.lang.String constName)
public static IRubyObject setInstanceVariable(IRubyObject self, IRubyObject value, java.lang.String name)
public static DynamicMethod newInterpretedMetaClass(Ruby runtime, IRScope metaClassBody, IRubyObject obj)
public static DynamicMethod newCompiledMetaClass(ThreadContext context, java.lang.invoke.MethodHandle handle, IRScope metaClassBody, IRubyObject obj)
public static DynamicMethod newInterpretedModuleBody(ThreadContext context, IRScope irModule, java.lang.Object rubyContainer)
public static DynamicMethod newCompiledModuleBody(ThreadContext context, java.lang.invoke.MethodHandle handle, IRScope irModule, java.lang.Object rubyContainer)
public static RubyModule newRubyModuleFromIR(ThreadContext context, IRScope irModule, java.lang.Object rubyContainer)
public static DynamicMethod newInterpretedClassBody(ThreadContext context, IRScope irClassBody, java.lang.Object container, java.lang.Object superClass)
public static DynamicMethod newCompiledClassBody(ThreadContext context, java.lang.invoke.MethodHandle handle, IRScope irClassBody, java.lang.Object container, java.lang.Object superClass)
public static RubyModule newRubyClassFromIR(Ruby runtime, IRScope irClassBody, java.lang.Object superClass, java.lang.Object container)
public static void defInterpretedClassMethod(ThreadContext context, IRScope method, IRubyObject obj)
public static void defCompiledClassMethod(ThreadContext context, java.lang.invoke.MethodHandle handle, IRScope method, IRubyObject obj)
public static void defCompiledClassMethod(ThreadContext context, java.lang.invoke.MethodHandle variable, java.lang.invoke.MethodHandle specific, int specificArity, IRScope method, IRubyObject obj)
public static void defInterpretedInstanceMethod(ThreadContext context, IRScope method, DynamicScope currDynScope, IRubyObject self)
public static void defCompiledInstanceMethod(ThreadContext context, java.lang.invoke.MethodHandle handle, IRScope method, DynamicScope currDynScope, IRubyObject self)
public static void defCompiledInstanceMethod(ThreadContext context, java.lang.invoke.MethodHandle variable, java.lang.invoke.MethodHandle specific, int specificArity, IRScope method, DynamicScope currDynScope, IRubyObject self)
public static IRubyObject invokeModuleBody(ThreadContext context, DynamicMethod method, Block block)
public static IRubyObject invokeModuleBody(ThreadContext context, DynamicMethod method)
public static RubyRegexp newDynamicRegexp(ThreadContext context, IRubyObject[] pieces, int embeddedOptions)
public static RubyRegexp newDynamicRegexp(ThreadContext context, IRubyObject arg0, int embeddedOptions)
public static RubyRegexp newDynamicRegexp(ThreadContext context, IRubyObject arg0, IRubyObject arg1, int embeddedOptions)
public static RubyRegexp newDynamicRegexp(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, int embeddedOptions)
public static RubyRegexp newDynamicRegexp(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, int embeddedOptions)
public static RubyRegexp newDynamicRegexp(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, IRubyObject arg4, int embeddedOptions)
public static RubyRegexp newLiteralRegexp(ThreadContext context, ByteList source, RegexpOptions options)
public static RubyRegexp newLiteralRegexp(ThreadContext context, ByteList source, int embeddedOptions)
public static RubyArray irSplat(ThreadContext context, IRubyObject ary)
public static RubyArray splatArray(ThreadContext context, IRubyObject ary, boolean dupArray)
public static IRubyObject irToAry(ThreadContext context, IRubyObject value)
public static int irReqdArgMultipleAsgnIndex(int n, int preArgsCount, int index, int postArgsCount)
public static IRubyObject irReqdArgMultipleAsgn(ThreadContext context, RubyArray rubyArray, int preArgsCount, int index, int postArgsCount)
public static IRubyObject irNot(ThreadContext context, IRubyObject obj)
public static RaiseException newRequiredKeywordArgumentError(ThreadContext context, java.lang.String id)
public static void pushExitBlock(ThreadContext context, Block blk)
public static void pushExitBlock(ThreadContext context, java.lang.Object blk)
public static FunctionalCachingCallSite newFunctionalCachingCallSite(java.lang.String name)
public static ProfilingCachingCallSite newProfilingCachingCallSite(CallType callType, java.lang.String name, IRScope scope, long callSiteId)
public static MonomorphicCallSite newMonomorphicCallSite(java.lang.String name)
public static VariableCachingCallSite newVariableCachingCallSite(java.lang.String name)
public static RefinedCachingCallSite newRefinedCachingCallSite(java.lang.String name, IRScope scope, java.lang.String callType)
public static IRScope decodeScopeFromBytes(Ruby runtime, byte[] scopeBytes, java.lang.String filename)
public static VariableAccessor getVariableAccessorForRead(IRubyObject object, java.lang.String name)
public static VariableAccessor getVariableAccessorForWrite(IRubyObject object, java.lang.String name)
public static IRubyObject getVariableWithAccessor(IRubyObject self, VariableAccessor accessor, ThreadContext context, java.lang.String name)
public static void setVariableWithAccessor(IRubyObject self, IRubyObject value, VariableAccessor accessor)
public static RubyFixnum getArgScopeDepth(ThreadContext context, StaticScope currScope)
public static IRubyObject[] toAry(ThreadContext context, IRubyObject[] args)
public static IRubyObject[] prepareNoBlockArgs(ThreadContext context, Block block, IRubyObject[] args)
context
- block
- args
- public static IRubyObject[] prepareSingleBlockArgs(ThreadContext context, Block block, IRubyObject[] args)
public static IRubyObject[] prepareFixedBlockArgs(ThreadContext context, Block block, IRubyObject[] args)
public static IRubyObject[] prepareBlockArgs(ThreadContext context, Block block, IRubyObject[] args, boolean usesKwArgs)
public static DynamicScope pushBlockDynamicScopeIfNeeded(ThreadContext context, Block block, boolean pushNewDynScope, boolean reuseParentDynScope)
public static DynamicScope pushBlockDynamicScopeNew(ThreadContext context, Block block)
public static DynamicScope pushBlockDynamicScopeReuse(ThreadContext context, Block block)
public static IRubyObject updateBlockState(Block block, IRubyObject self)
public static IRubyObject useBindingSelf(Binding binding)
public static RubyProc newSymbolProc(ThreadContext context, java.lang.String id)
context
- id
- public static RubyProc newSymbolProc(ThreadContext context, RubySymbol symbol)
context
- symbol
- public static IRubyObject[] singleBlockArgToArray(IRubyObject value)
public static Block prepareBlock(ThreadContext context, IRubyObject self, DynamicScope scope, BlockBody body)
public static RubyString newFrozenString(ThreadContext context, ByteList bytelist, int coderange, java.lang.String file, int line)
public static RubyString freezeLiteralString(RubyString string)
public static RubyString freezeLiteralString(RubyString string, ThreadContext context, java.lang.String file, int line)
public static IRubyObject callOptimizedAref(ThreadContext context, IRubyObject caller, IRubyObject target, RubyString keyStr, CallSite site)
public static IRubyObject asString(ThreadContext context, IRubyObject caller, IRubyObject target, CallSite site)
public static RubyArray newArray(ThreadContext context)
public static RubyArray newArray(ThreadContext context, IRubyObject obj)
public static RubyArray newArray(ThreadContext context, IRubyObject obj0, IRubyObject obj1)
public static RubyString getFileNameStringFromScope(ThreadContext context, StaticScope currScope)
public static void callTrace(ThreadContext context, RubyEvent event, java.lang.String name, java.lang.String filename, int line)
public static void warnSetConstInRefinement(ThreadContext context, IRubyObject self)
public static void putConst(ThreadContext context, IRubyObject self, RubyModule module, java.lang.String id, IRubyObject value)
public static void putClassVariable(ThreadContext context, IRubyObject self, RubyModule module, java.lang.String id, IRubyObject value)
public static RubyRational newRationalRaw(ThreadContext context, IRubyObject num, IRubyObject den)
public static RubyComplex newComplexRaw(ThreadContext context, IRubyObject i)
public static RubySymbol newDSymbol(ThreadContext context, IRubyObject symbol)
public static RubyClass getStandardError(ThreadContext context)
public static RubyClass getObject(ThreadContext context)
public static IRubyObject svalue(ThreadContext context, java.lang.Object val)
public static void aliasGlobalVariable(Ruby runtime, java.lang.Object newName, java.lang.Object oldName)
Copyright © 2001-2020 JRuby. All Rights Reserved.