Package | Description |
---|---|
org.jruby.ir.runtime | |
org.jruby.ir.targets | |
org.jruby.runtime |
Modifier and Type | Method and Description |
---|---|
static void |
IRRuntimeHelpers.aliasGlobalVariable(Ruby runtime,
java.lang.Object newName,
java.lang.Object oldName) |
static IRubyObject |
IRRuntimeHelpers.asString(ThreadContext context,
IRubyObject caller,
IRubyObject target,
CallSite site)
asString using a given call site
|
static IRubyObject |
IRRuntimeHelpers.callOptimizedAref(ThreadContext context,
IRubyObject caller,
IRubyObject target,
RubyString keyStr,
CallSite site) |
static void |
IRRuntimeHelpers.callTrace(ThreadContext context,
RubyEvent event,
java.lang.String name,
java.lang.String filename,
int line) |
static void |
IRRuntimeHelpers.checkForLJE(ThreadContext context,
DynamicScope currentScope,
boolean definedWithinMethod,
Block block) |
static IRubyObject |
IRRuntimeHelpers.classSuperSplatArgs(ThreadContext context,
IRubyObject self,
java.lang.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,
java.lang.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 RubyHash |
IRRuntimeHelpers.dupKwargsHashAndPopulateFromArray(ThreadContext context,
RubyHash dupHash,
IRubyObject[] pairs) |
static RubyString |
IRRuntimeHelpers.freezeLiteralString(RubyString string) |
static RubyString |
IRRuntimeHelpers.freezeLiteralString(RubyString string,
ThreadContext context,
java.lang.String file,
int line) |
static IRubyObject[] |
IRRuntimeHelpers.frobnicateKwargsArgument(ThreadContext context,
IRubyObject[] args,
int requiredArgsCount) |
static RubyFixnum |
IRRuntimeHelpers.getArgScopeDepth(ThreadContext context,
StaticScope currScope) |
static Block |
IRRuntimeHelpers.getBlockFromObject(ThreadContext context,
java.lang.Object value) |
static RubyString |
IRRuntimeHelpers.getFileNameStringFromScope(ThreadContext context,
StaticScope currScope) |
static RubyClass |
IRRuntimeHelpers.getObject(ThreadContext context) |
static Block |
IRRuntimeHelpers.getRefinedBlockFromObject(ThreadContext context,
StaticScope scope,
java.lang.Object value) |
static RubyClass |
IRRuntimeHelpers.getStandardError(ThreadContext context) |
static VariableAccessor |
IRRuntimeHelpers.getVariableAccessorForRead(IRubyObject object,
java.lang.String name) |
static VariableAccessor |
IRRuntimeHelpers.getVariableAccessorForWrite(IRubyObject object,
java.lang.String name) |
static IRubyObject |
IRRuntimeHelpers.getVariableWithAccessor(IRubyObject self,
VariableAccessor accessor,
ThreadContext context,
java.lang.String name) |
static IRubyObject |
IRRuntimeHelpers.handleBreakAndReturnsInLambdas(ThreadContext context,
DynamicScope dynScope,
java.lang.Object exc,
Block block) |
static IRubyObject |
IRRuntimeHelpers.handleNonlocalReturn(DynamicScope currentScope,
java.lang.Object rjExc) |
static IRubyObject |
IRRuntimeHelpers.handlePropagatedBreak(ThreadContext context,
DynamicScope dynScope,
java.lang.Object bjExc) |
static IRubyObject |
IRRuntimeHelpers.inheritedSearchConst(ThreadContext context,
IRubyObject cmVal,
java.lang.String constName,
boolean noPrivateConsts) |
static IRubyObject |
IRRuntimeHelpers.initiateBreak(ThreadContext context,
DynamicScope dynScope,
IRubyObject breakValue,
Block block) |
static IRubyObject |
IRRuntimeHelpers.initiateNonLocalReturn(DynamicScope currentScope,
Block block,
IRubyObject returnValue) |
static IRubyObject |
IRRuntimeHelpers.instanceSuperSplatArgs(ThreadContext context,
IRubyObject self,
java.lang.String methodName,
RubyModule definingModule,
IRubyObject[] args,
Block block,
boolean[] splatMap) |
static IRubyObject |
IRRuntimeHelpers.invokeModuleBody(ThreadContext context,
DynamicMethod method) |
static IRubyObject |
IRRuntimeHelpers.invokeModuleBody(ThreadContext context,
DynamicMethod method,
Block block) |
static RubyArray |
IRRuntimeHelpers.irSplat(ThreadContext context,
IRubyObject ary) |
static IRubyObject |
IRRuntimeHelpers.isDefinedBackref(ThreadContext context,
IRubyObject definedMessage) |
static IRubyObject |
IRRuntimeHelpers.isDefinedCall(ThreadContext context,
IRubyObject self,
IRubyObject receiver,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
IRRuntimeHelpers.isDefinedClassVar(ThreadContext context,
RubyModule receiver,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
IRRuntimeHelpers.isDefinedConstantOrMethod(ThreadContext context,
IRubyObject receiver,
java.lang.String name,
IRubyObject definedConstantMessage,
IRubyObject definedMethodMessage) |
static IRubyObject |
IRRuntimeHelpers.isDefinedGlobal(ThreadContext context,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
IRRuntimeHelpers.isDefinedInstanceVar(ThreadContext context,
IRubyObject receiver,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
IRRuntimeHelpers.isDefinedMethod(ThreadContext context,
IRubyObject receiver,
java.lang.String name,
boolean checkIfPublic,
IRubyObject definedMessage) |
static IRubyObject |
IRRuntimeHelpers.isDefinedNthRef(ThreadContext context,
int matchNumber,
IRubyObject definedMessage) |
static IRubyObject |
IRRuntimeHelpers.isDefinedSuper(ThreadContext context,
IRubyObject receiver,
java.lang.String frameName,
RubyModule frameClass,
IRubyObject definedMessage) |
static IRubyObject |
IRRuntimeHelpers.lexicalSearchConst(ThreadContext context,
StaticScope staticScope,
java.lang.String constName) |
static IRubyObject |
IRRuntimeHelpers.mergeKeywordArguments(ThreadContext context,
IRubyObject restKwarg,
IRubyObject explicitKwarg) |
static RubyArray |
IRRuntimeHelpers.newArray(ThreadContext context) |
static RubyArray |
IRRuntimeHelpers.newArray(ThreadContext context,
IRubyObject obj) |
static RubyArray |
IRRuntimeHelpers.newArray(ThreadContext context,
IRubyObject obj0,
IRubyObject obj1) |
static ByteList |
IRRuntimeHelpers.newByteListFromRaw(Ruby runtime,
java.lang.String str,
java.lang.String encoding) |
static DynamicMethod |
IRRuntimeHelpers.newCompiledClassBody(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope irClassBody,
java.lang.Object container,
java.lang.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,
java.lang.Object rubyContainer) |
static RubyComplex |
IRRuntimeHelpers.newComplexRaw(ThreadContext context,
IRubyObject i) |
static RubySymbol |
IRRuntimeHelpers.newDSymbol(ThreadContext context,
IRubyObject symbol) |
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,
java.lang.String str,
java.lang.String encoding,
int cr,
java.lang.String file,
int line) |
static FunctionalCachingCallSite |
IRRuntimeHelpers.newFunctionalCachingCallSite(java.lang.String name) |
static RubyProc |
IRRuntimeHelpers.newLambdaProc(ThreadContext context,
Block block) |
static RubyRegexp |
IRRuntimeHelpers.newLiteralRegexp(ThreadContext context,
ByteList source,
int embeddedOptions) |
static MonomorphicCallSite |
IRRuntimeHelpers.newMonomorphicCallSite(java.lang.String name) |
static IRubyObject |
IRRuntimeHelpers.newProc(ThreadContext context,
Block block) |
static RubyRational |
IRRuntimeHelpers.newRationalCanonicalize(ThreadContext context,
IRubyObject num,
IRubyObject den) |
static RefinedCachingCallSite |
IRRuntimeHelpers.newRefinedCachingCallSite(java.lang.String name,
IRScope scope,
java.lang.String callType) |
static RaiseException |
IRRuntimeHelpers.newRequiredKeywordArgumentError(ThreadContext context,
java.lang.String id) |
static RubyModule |
IRRuntimeHelpers.newRubyClassFromIR(Ruby runtime,
IRScope irClassBody,
java.lang.Object superClass,
java.lang.Object container) |
static RubyModule |
IRRuntimeHelpers.newRubyModuleFromIR(ThreadContext context,
IRScope irModule,
java.lang.Object rubyContainer) |
static RubyProc |
IRRuntimeHelpers.newSymbolProc(ThreadContext context,
java.lang.String id)
Create a new Symbol.to_proc for the given symbol name and encoding.
|
static VariableCachingCallSite |
IRRuntimeHelpers.newVariableCachingCallSite(java.lang.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 DynamicScope |
IRRuntimeHelpers.prepareScriptScope(ThreadContext context,
StaticScope scope) |
static IRubyObject[] |
IRRuntimeHelpers.prepareSingleBlockArgs(ThreadContext context,
Block block,
IRubyObject[] args) |
static DynamicScope |
IRRuntimeHelpers.pushBlockDynamicScopeNew(ThreadContext context,
Block block) |
static DynamicScope |
IRRuntimeHelpers.pushBlockDynamicScopeReuse(ThreadContext context,
Block block) |
static void |
IRRuntimeHelpers.pushExitBlock(ThreadContext context,
java.lang.Object blk) |
static void |
IRRuntimeHelpers.putClassVariable(ThreadContext context,
IRubyObject self,
RubyModule module,
java.lang.String id,
IRubyObject value) |
static void |
IRRuntimeHelpers.putConst(ThreadContext context,
IRubyObject self,
RubyModule module,
java.lang.String id,
IRubyObject value) |
static IRubyObject |
IRRuntimeHelpers.receiveOptArg(ThreadContext context,
IRubyObject[] args,
int requiredArgs,
int preArgs,
int argIndex,
boolean acceptsKeywordArgument) |
static IRubyObject |
IRRuntimeHelpers.receivePostReqdArg(ThreadContext context,
IRubyObject[] args,
int pre,
int opt,
boolean rest,
int post,
int argIndex,
boolean acceptsKeywordArgument) |
static RubyEncoding |
IRRuntimeHelpers.retrieveEncoding(ThreadContext context,
java.lang.String name) |
static org.jcodings.Encoding |
IRRuntimeHelpers.retrieveJCodingsEncoding(ThreadContext context,
java.lang.String name) |
static IRubyObject |
IRRuntimeHelpers.returnOrRethrowSavedException(ThreadContext context,
IRubyObject value) |
static IRubyObject |
IRRuntimeHelpers.searchConst(ThreadContext context,
StaticScope staticScope,
java.lang.String constName,
boolean noPrivateConsts) |
static void |
IRRuntimeHelpers.setVariableWithAccessor(IRubyObject self,
IRubyObject value,
VariableAccessor accessor) |
static IRubyObject[] |
IRRuntimeHelpers.singleBlockArgToArray(IRubyObject value) |
static RubyArray |
IRRuntimeHelpers.splatArray(ThreadContext context,
IRubyObject ary,
boolean dupArray)
Call to_ary to get Array or die typing.
|
static IRubyObject |
IRRuntimeHelpers.svalue(ThreadContext context,
java.lang.Object val) |
static long |
IRRuntimeHelpers.unboxFixnum(IRubyObject val) |
static double |
IRRuntimeHelpers.unboxFloat(IRubyObject val) |
static IRubyObject |
IRRuntimeHelpers.updateBlockState(Block block,
IRubyObject self) |
Modifier and Type | Method and Description |
---|---|
static java.lang.invoke.CallSite |
Bootstrap.checkArity(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.String name,
java.lang.invoke.MethodType type,
int req,
int opt,
int rest,
int key,
int keyrest) |
static void |
Bootstrap.checkArity(ThreadContext context,
StaticScope scope,
java.lang.Object[] args,
Block block,
int req,
int opt,
boolean rest,
boolean key,
int keyrest) |
static java.lang.invoke.CallSite |
Bootstrap.openMetaClass(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.String name,
java.lang.invoke.MethodType type,
java.lang.invoke.MethodHandle body,
java.lang.invoke.MethodHandle scope) |
static DynamicMethod |
Bootstrap.openMetaClass(ThreadContext context,
IRubyObject object,
java.lang.invoke.MethodHandle body,
IRScope scope) |
static boolean |
InvokeSite.testClass(java.lang.Object object,
java.lang.Class clazz) |
Modifier and Type | Method and Description |
---|---|
static RubyArray |
Helpers.argsPush(IRubyObject first,
IRubyObject second) |
static boolean |
Helpers.BNE(ThreadContext context,
IRubyObject value1,
IRubyObject value2) |
void |
ThreadContext.exceptionBacktraceOff() |
void |
ThreadContext.exceptionBacktraceOn() |
static IRubyObject |
Helpers.getDefinedConstantOrBoundMethod(IRubyObject left,
java.lang.String name,
IRubyObject definedConstantMessage,
IRubyObject definedMethodMessage) |
abstract IRubyObject |
DynamicScope.getValue(int offset,
int depth)
Get value from current scope or one of its captured scopes.
|
IRubyObject |
DynamicScope.getValueDepthZero(int offset)
Variation of getValue for depth 0
|
IRubyObject |
DynamicScope.getValueEightDepthZero()
getValue for index 8, depth 0
|
IRubyObject |
DynamicScope.getValueFiveDepthZero()
getValue for index 5, depth 0
|
IRubyObject |
DynamicScope.getValueFourDepthZero()
getValue for index 4, depth 0
|
IRubyObject |
DynamicScope.getValueNineDepthZero()
getValue for index 9, depth 0
|
IRubyObject |
DynamicScope.getValueOneDepthZero()
getValue for index 1, depth 0
|
IRubyObject |
DynamicScope.getValueSevenDepthZero()
getValue for index 7, depth 0
|
IRubyObject |
DynamicScope.getValueSixDepthZero()
getValue for index 6, depth 0
|
IRubyObject |
DynamicScope.getValueThreeDepthZero()
getValue for index 3, depth 0
|
IRubyObject |
DynamicScope.getValueTwoDepthZero()
getValue for index 2, depth 0
|
IRubyObject |
DynamicScope.getValueZeroDepthZero()
getValue for index 0, depth 0
|
Frame |
ThreadContext.preYieldNoScope(Block block) |
DynamicScope |
ThreadContext.pushNewScope(StaticScope staticScope) |
void |
DynamicScope.setValueDepthZeroVoid(IRubyObject value,
int offset)
setValue for depth zero
|
void |
DynamicScope.setValueEightDepthZeroVoid(IRubyObject value)
Set value eight in this scope.
|
void |
DynamicScope.setValueFiveDepthZeroVoid(IRubyObject value)
Set value five in this scope.
|
void |
DynamicScope.setValueFourDepthZeroVoid(IRubyObject value)
Set value four in this scope.
|
void |
DynamicScope.setValueNineDepthZeroVoid(IRubyObject value)
Set value nine in this scope.
|
void |
DynamicScope.setValueOneDepthZeroVoid(IRubyObject value)
Set value one in this scope.
|
void |
DynamicScope.setValueSevenDepthZeroVoid(IRubyObject value)
Set value seven in this scope.
|
void |
DynamicScope.setValueSixDepthZeroVoid(IRubyObject value)
Set value six in this scope.
|
void |
DynamicScope.setValueThreeDepthZeroVoid(IRubyObject value)
Set value three in this scope.
|
void |
DynamicScope.setValueTwoDepthZeroVoid(IRubyObject value)
Set value two in this scope.
|
abstract void |
DynamicScope.setValueVoid(IRubyObject value,
int offset,
int depth)
Set value in current dynamic scope or one of its captured scopes.
|
void |
DynamicScope.setValueZeroDepthZeroVoid(IRubyObject value)
Set value zero in this scope;
|
Copyright © 2001-2022 JRuby. All Rights Reserved.