public final long getCachedMethodSerial() { CacheEntry cacheEntry = cache; if (cacheEntry != CacheEntry.NULL_CACHE) { return cacheEntry.method.getSerialNumber(); } return -1; }
public final long getCachedMethodSerial() { CacheEntry cacheEntry = cache; if (cacheEntry != CacheEntry.NULL_CACHE) { return cacheEntry.method.getSerialNumber(); } return -1; }
@Override public long getSerialNumber() { return delegate.getSerialNumber(); }
@Override public long getSerialNumber() { return oldMethod.getSerialNumber(); }
@Override public long getSerialNumber() { return oldMethod.getSerialNumber(); }
@Override public long getSerialNumber() { return delegate.getSerialNumber(); }
public int profileEnter(String name, DynamicMethod nextMethod) { // profiled method is added in the MethodEnhancer (if necessary) // @see BuiltinProfilingService.DefaultMethodEnhancer return profileEnter((int) nextMethod.getSerialNumber()); }
public long getCachedMethodSerial() { CacheEntry cacheEntry = getCache(); if (cacheEntry != CacheEntry.NULL_CACHE) { return cacheEntry.method.getSerialNumber(); } return -1; }
@Override public int hashCode() { long serial = method.getRealMethod().getSerialNumber(); return 997 * ((int) (serial >> 32) ^ (int) serial & 0xFF); }
@Override public int hashCode() { long serial = method.getRealMethod().getSerialNumber(); return 997 * ((int) (serial >> 32) ^ (int) serial & 0xFF); }
public int profileEnter(String name, DynamicMethod nextMethod) { // profiled method is added in the MethodEnhancer (if necessary) // @see BuiltinProfilingService.DefaultMethodEnhancer return profileEnter((int) nextMethod.getSerialNumber()); }
public long getCachedMethodSerial() { CacheEntry cacheEntry = getCache(); if (cacheEntry != CacheEntry.NULL_CACHE) { return cacheEntry.method.getSerialNumber(); } return -1; }
@Override public boolean equals(Object other) { if (!(other instanceof AbstractRubyMethod)) return false; if (method instanceof ProcMethod) { return ((ProcMethod) method).isSame(((AbstractRubyMethod) other).getMethod()); } AbstractRubyMethod otherMethod = (AbstractRubyMethod) other; return originModule == otherMethod.originModule && method.getRealMethod().getSerialNumber() == otherMethod.method.getRealMethod().getSerialNumber(); }
@Override public boolean equals(Object other) { if (!(other instanceof AbstractRubyMethod)) return false; if (method instanceof ProcMethod) { return ((ProcMethod) method).isSame(((AbstractRubyMethod) other).getMethod()); } AbstractRubyMethod otherMethod = (AbstractRubyMethod) other; return originModule == otherMethod.originModule && method.getRealMethod().getSerialNumber() == otherMethod.method.getRealMethod().getSerialNumber(); }
public int profileEnter(String name, DynamicMethod nextMethod) { if (isProfiling()) { getProfileData().addProfiledMethod(name, nextMethod); } return profileEnter((int) nextMethod.getSerialNumber()); }
public void addProfiledMethod(String name, DynamicMethod method) { if (method.isUndefined()) return; final long serial = method.getSerialNumber(); if (serial > MAX_PROFILE_METHODS) return; if (profiledMethods.get((int) serial) == null) { profiledMethods.put((int) serial, new ProfiledMethod(name, method)); } }
public void addProfiledMethod(String name, DynamicMethod method) { if (method.isUndefined()) return; final long serial = method.getSerialNumber(); if (serial > MAX_PROFILE_METHODS) return; if (profiledMethods.get((int) serial) == null) { profiledMethods.put((int) serial, new ProfiledMethod(name, method)); } }
public int profileEnter(String name, DynamicMethod nextMethod) { if (isProfiling()) { getProfileData().addProfiledMethod(name, nextMethod); } return profileEnter((int) nextMethod.getSerialNumber()); }
public void addProfiledMethod(String name, DynamicMethod method ) { final long serial = method.getSerialNumber(); if (getMethods().size() >= getProfileMaxMethods()) { getWarnings().warnOnce(IRubyWarnings.ID.PROFILE_MAX_METHODS_EXCEEDED, "method count exceeds max of " + getConfig().getProfileMaxMethods() + "; no new methods will be profiled"); return; } getMethods().putIfAbsent(serial, new ProfiledMethod(name, method)); }
public void addProfiledMethod(String name, DynamicMethod method ) { final long serial = method.getSerialNumber(); if (getMethods().size() >= getProfileMaxMethods()) { getWarnings().warnOnce(IRubyWarnings.ID.PROFILE_MAX_METHODS_EXCEEDED, "method count exceeds max of " + getConfig().getProfileMaxMethods() + "; no new methods will be profiled"); return; } getMethods().putIfAbsent(serial, new ProfiledMethod(name, method)); }