Package org.jruby.runtime.callsite
Class ProfilingCachingCallSite
java.lang.Object
org.jruby.runtime.CallSite
org.jruby.runtime.callsite.CachingCallSite
org.jruby.runtime.callsite.ProfilingCachingCallSite
An interesting callsite in which we will look for monomorphic behavior in case we want to inline.
-
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
ConstructorsConstructorDescriptionProfilingCachingCallSite
(CallType callType, String methodName, IRScope scope, long callSiteId) -
Method Summary
Modifier and TypeMethodDescriptioncall
(ThreadContext context, IRubyObject caller, IRubyObject self) Call the site's method against the target object passing no args.call
(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) Call the site's method against the target object, passing a literal double value.call
(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) Call the site's method against the target object, passing a literal long value.call
(ThreadContext context, IRubyObject caller, IRubyObject self, Block block) Call the site's method against the target object passing no arguments and a non-literal (block pass, &) block.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1) Call the site's method against the target object passing one argument.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args) Call the site's method against the target object passing arguments.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block) Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, Block block) Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2) Call the site's method against the target object passing two arguments.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block) Call the site's method against the target object passing two arguments and a non-literal (block pass, &) block.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) Call the site's method against the target object passing two arguments.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) Call the site's method against the target object passing three arguments and a non-literal (block pass, &) block.protected boolean
methodMissing
(DynamicMethod method, IRubyObject caller) Methods inherited from class org.jruby.runtime.callsite.CachingCallSite
cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, 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, isBuiltin, isOptimizable, retrieveCache, retrieveCache, retrieveCache, setCache
-
Field Details
-
LOG
-
-
Constructor Details
-
ProfilingCachingCallSite
-
-
Method Details
-
methodMissing
- Overrides:
methodMissing
in classCachingCallSite
-
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 againstfixnum
- the literal long value 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 againstflote
- the literal double value to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args) Description copied from class:CallSite
Call the site's method against the target object passing arguments.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstargs
- the arguments to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block) Description copied from class:CallSite
Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstargs
- the arguments to passblock
- the block 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 no args.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call against- Returns:
- the result of the call
-
call
Description copied from class:CallSite
Call the site's method against the target object passing no arguments and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstblock
- the block argument 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
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, Block block) Description copied from class:CallSite
Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.- 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 passblock
- the block argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2) Description copied from class:CallSite
Call the site's method against the target object passing two arguments.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg1
- the first argument to passarg2
- the second argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block) Description copied from class:CallSite
Call the site's method against the target object passing two arguments and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg1
- the first argument to passarg2
- the second argument to passblock
- the block argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) Description copied from class:CallSite
Call the site's method against the target object passing two arguments.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg1
- the first argument to passarg2
- the second argument to passarg3
- the third argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) Description copied from class:CallSite
Call the site's method against the target object passing three arguments and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg1
- the first argument to passarg2
- the second argument to passarg3
- the third argument to passblock
- the block argument to pass- Returns:
- the result of the call
-