Class ModCallSite


public class ModCallSite extends CachingCallSite
  • Field Details

    • secondaryCache

      protected CacheEntry secondaryCache
  • Constructor Details

    • ModCallSite

      public ModCallSite()
  • Method Details

    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long arg1)
      Description copied from class: CallSite
      Call the site's method against the target object, passing a literal long value.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg1 - 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 class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg1 - the argument to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double arg1)
      Description copied from class: CallSite
      Call the site's method against the target object, passing a literal double value.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg1 - the literal double value to pass
      Returns:
      the result of the call
    • setCache

      protected CacheEntry setCache(CacheEntry entry, IRubyObject self)
      Overrides:
      setCache in class CachingCallSite
    • setSecondaryCache

      protected CacheEntry setSecondaryCache(CacheEntry entry, IRubyObject self)
    • isBuiltin

      public boolean isBuiltin(IRubyObject self)
      Overrides:
      isBuiltin in class CachingCallSite
    • isSecondaryBuiltin

      public boolean isSecondaryBuiltin(IRubyObject self)
    • getSecondaryCache

      public final CacheEntry getSecondaryCache()
    • retrieveSecondaryCache

      public final CacheEntry retrieveSecondaryCache(IRubyObject self)