Top Description Fields Constructors Methods
org.jruby.ir.targets.indy

public Class ConstantLookupSite

extends MutableCallSite
Class Inheritance
Imports
com.headius.invokebinder.Binder, org.jruby.Ruby, .RubyModule, .RubySymbol, org.jruby.ir.operands.UndefinedValue, org.jruby.ir.targets.SiteTracker, org.jruby.parser.StaticScope, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.cli.Options, org.jruby.util.log.Logger, .LoggerFactory, org.objectweb.asm.Handle, .Opcodes, java.lang.invoke.CallSite, .MethodHandle, .MethodHandles, .MethodType, .MutableCallSite, .SwitchPoint

Created by headius on 1/31/16.

Field Summary

Modifier and TypeField and Description
private MethodHandle
private MethodHandle
private MethodHandle
private MethodHandle
public static final Handle
private final boolean
private static final Logger
private static final MethodHandles.Lookup
private final String
private final boolean
private volatile RubySymbol
private final SiteTracker

Constructor Summary

AccessConstructor and Description
public
ConstantLookupSite(MethodType type, String name, boolean publicOnly, boolean callConstMissing)

Method Summary

Modifier and TypeMethod and Description
private IRubyObject
bail(ThreadContext context, IRubyObject cmVal, MethodHandle noncachingFallback)

private void
bind(RubyModule module, SwitchPoint switchPoint, IRubyObject constant, MethodHandle cachingFallback)

private boolean
public static CallSite
constLookup(MethodHandles.Lookup lookup, String searchType, MethodType type, String constName, int publicOnly, int callConstMissing)

private MethodHandle
getFallback(RubyModule module, MethodHandle cachingFallback)

private SwitchPoint
private RubySymbol
public IRubyObject
private MethodHandle
ISC()

public IRubyObject
public IRubyObject
private MethodHandle
public IRubyObject
private MethodHandle
public IRubyObject
searchConst(ThreadContext context, StaticScope staticScope)

public IRubyObject
private MethodHandle
SMFC()

Inherited from java.lang.invoke.MutableCallSite:
dynamicInvokergetTargetsetTargetsyncAll

Field Detail

_ISCback to summary
private MethodHandle _ISC
_noCacheISCback to summary
private MethodHandle _noCacheISC
_noCacheSMFCback to summary
private MethodHandle _noCacheSMFC
_SMFCback to summary
private MethodHandle _SMFC
BOOTSTRAPback to summary
public static final Handle BOOTSTRAP
callConstMissingback to summary
private final boolean callConstMissing
LOGback to summary
private static final Logger LOG
LOOKUPback to summary
private static final MethodHandles.Lookup LOOKUP
nameback to summary
private final String name
publicOnlyback to summary
private final boolean publicOnly
symbolicNameback to summary
private volatile RubySymbol symbolicName
trackerback to summary
private final SiteTracker tracker

Constructor Detail

ConstantLookupSiteback to summary
public ConstantLookupSite(MethodType type, String name, boolean publicOnly, boolean callConstMissing)

Method Detail

bailback to summary
private IRubyObject bail(ThreadContext context, IRubyObject cmVal, MethodHandle noncachingFallback) throws Throwable
bindback to summary
private void bind(RubyModule module, SwitchPoint switchPoint, IRubyObject constant, MethodHandle cachingFallback)
checkForBailoutback to summary
private boolean checkForBailout(RubyModule module)
constLookupback to summary
public static CallSite constLookup(MethodHandles.Lookup lookup, String searchType, MethodType type, String constName, int publicOnly, int callConstMissing)
getFallbackback to summary
private MethodHandle getFallback(RubyModule module, MethodHandle cachingFallback)
getSwitchPointForConstantback to summary
private SwitchPoint getSwitchPointForConstant(ThreadContext context)
getSymbolicNameback to summary
private RubySymbol getSymbolicName(ThreadContext context)
inheritanceSearchConstback to summary
public IRubyObject inheritanceSearchConst(ThreadContext context, IRubyObject cmVal) throws Throwable
ISCback to summary
private MethodHandle ISC()
lexicalSearchConstback to summary
public IRubyObject lexicalSearchConst(ThreadContext context, StaticScope scope)
noCacheInheritanceSearchConstback to summary
public IRubyObject noCacheInheritanceSearchConst(ThreadContext context, IRubyObject cmVal)
noCacheISCback to summary
private MethodHandle noCacheISC()
noCacheSearchModuleForConstback to summary
public IRubyObject noCacheSearchModuleForConst(ThreadContext context, IRubyObject cmVal)
noCacheSMFCback to summary
private MethodHandle noCacheSMFC()
searchConstback to summary
public IRubyObject searchConst(ThreadContext context, StaticScope staticScope)
searchModuleForConstback to summary
public IRubyObject searchModuleForConst(ThreadContext context, IRubyObject cmVal) throws Throwable
SMFCback to summary
private MethodHandle SMFC()