Package | Description |
---|---|
org.jruby.ir.runtime | |
org.jruby.ir.targets | |
org.jruby.runtime |
Modifier and Type | Method and Description |
---|---|
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 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 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 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,
StaticScope scope,
DynamicScope dynScope,
java.lang.Object exc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handleNonlocalReturn(StaticScope scope,
DynamicScope dynScope,
java.lang.Object rjExc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handlePropagatedBreak(ThreadContext context,
DynamicScope dynScope,
java.lang.Object bjExc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.inheritedSearchConst(ThreadContext context,
IRubyObject cmVal,
java.lang.String constName,
boolean noPrivateConsts) |
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,
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 org.jruby.util.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 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 RubyRegexp |
IRRuntimeHelpers.newLiteralRegexp(ThreadContext context,
org.jruby.util.ByteList source,
int embeddedOptions) |
static NormalCachingCallSite |
IRRuntimeHelpers.newNormalCachingCallSite(java.lang.String name) |
static RefinedCachingCallSite |
IRRuntimeHelpers.newRefinedCachingCallSite(java.lang.String name,
java.lang.String callType) |
static RaiseException |
IRRuntimeHelpers.newRequiredKeywordArgumentError(ThreadContext context,
java.lang.String id) |
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.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 pre,
int opt,
boolean rest,
int post,
int argIndex,
boolean acceptsKeywordArgument) |
static IRubyObject |
IRRuntimeHelpers.restoreExceptionVar(ThreadContext context,
IRubyObject exc,
IRubyObject savedExc) |
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.updateBlockState(Block block,
IRubyObject self) |
Modifier and Type | Method and Description |
---|---|
static boolean |
InvokeSite.testClass(java.lang.Object object,
java.lang.Class clazz) |
static boolean |
InvokeSite.testMetaclass(RubyClass metaclass,
IRubyObject self) |
Modifier and Type | Method and Description |
---|---|
static RubyArray |
Helpers.argsPush(IRubyObject first,
IRubyObject second) |
static boolean |
Helpers.BNE(ThreadContext context,
IRubyObject value1,
IRubyObject value2) |
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
|
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-2018 JRuby. All Rights Reserved.