Package org.jruby.runtime.callsite
Class ModCallSite
java.lang.Object
org.jruby.runtime.CallSite
org.jruby.runtime.callsite.CachingCallSite
org.jruby.runtime.callsite.ModCallSite
-
Field Summary
FieldsFields inherited from class org.jruby.runtime.callsite.CachingCallSite
builtinCache, cache
Fields inherited from class org.jruby.runtime.CallSite
callType, methodName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall
(ThreadContext context, IRubyObject caller, IRubyObject self, double arg1) Call the site's method against the target object, passing a literal double value.call
(ThreadContext context, IRubyObject caller, IRubyObject self, long arg1) Call the site's method against the target object, passing a literal long value.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1) Call the site's method against the target object passing one argument.final CacheEntry
boolean
isBuiltin
(IRubyObject self) boolean
final CacheEntry
protected CacheEntry
setCache
(CacheEntry entry, IRubyObject self) protected CacheEntry
setSecondaryCache
(CacheEntry entry, IRubyObject self) Methods inherited from class org.jruby.runtime.callsite.CachingCallSite
cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, call, call, call, call, call, call, call, call, call, callIter, callIter, callIter, callIter, callIter, callVarargs, callVarargs, callVarargsIter, fcall, fcall, fcall, fcall, fcall, fcall, fcall, fcall, fcall, fcall, fcallIter, fcallIter, fcallIter, fcallIter, fcallIter, fcallVarargs, fcallVarargs, fcallVarargsIter, getCache, getCachedClassIndex, getCachedMethodSerial, getClass, getMethodName, isBuiltin, isOptimizable, methodMissing, retrieveCache, retrieveCache, retrieveCache
-
Field Details
-
secondaryCache
-
-
Constructor Details
-
ModCallSite
public ModCallSite()
-
-
Method Details
-
call
Description copied from class:CallSite
Call the site's method against the target object, passing a literal long value.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg1
- the literal long value to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1) Description copied from class:CallSite
Call the site's method against the target object passing one argument.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg1
- the argument to pass- Returns:
- the result of the call
-
call
Description copied from class:CallSite
Call the site's method against the target object, passing a literal double value.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg1
- the literal double value to pass- Returns:
- the result of the call
-
setCache
- Overrides:
setCache
in classCachingCallSite
-
setSecondaryCache
-
isBuiltin
- Overrides:
isBuiltin
in classCachingCallSite
-
isSecondaryBuiltin
-
getSecondaryCache
-
retrieveSecondaryCache
-