static void log(DefaultMethod method, String name, String message, String... reason) { String className = method.getImplementationClass().getBaseName(); if (className == null) className = "<anon class>"; StringBuilder builder = new StringBuilder(message + ":" + className + "." + name + " at " + method.getPosition()); if (reason.length > 0) { builder.append(" because of: \""); for (int i = 0; i < reason.length; i++) { builder.append(reason[i]); } builder.append('"'); } LOG.info(builder.toString()); }
public void switchToJitted(Script jitCompiledScript, CallConfiguration jitCallConfig) { this.box.actualMethod = DynamicMethodFactory.newJittedMethod( getImplementationClass().getRuntime(), getImplementationClass(), staticScope, jitCompiledScript, name, jitCallConfig, getVisibility(), argsNode.getArity(), position, this); this.box.actualMethod.serialNumber = this.serialNumber; this.box.callCount = -1; getImplementationClass().invalidateCacheDescendants(); }
static void log(DefaultMethod method, String name, String message, String... reason) { String className = method.getImplementationClass().getBaseName(); if (className == null) className = "<anon class>"; StringBuilder builder = new StringBuilder(message + ":" + className + "." + name + " at " + method.getPosition()); if (reason.length > 0) { builder.append(" because of: \""); for (int i = 0; i < reason.length; i++) { builder.append(reason[i]); } builder.append('"'); } LOG.info(builder.toString()); }
public void switchToJitted(Script jitCompiledScript, CallConfiguration jitCallConfig) { this.box.actualMethod = DynamicMethodFactory.newJittedMethod( getImplementationClass().getRuntime(), getImplementationClass(), staticScope, jitCompiledScript, name, jitCallConfig, getVisibility(), argsNode.getArity(), position, this); this.box.actualMethod.serialNumber = this.serialNumber; this.box.callCount = -1; getImplementationClass().invalidateCacheDescendants(); }
public DynamicMethod dup() { DefaultMethod newMethod = new DefaultMethod(getImplementationClass(), staticScope, body, name, argsNode, getVisibility(), position); newMethod.setIsBuiltin(this.builtin); newMethod.box = this.box; return newMethod; }
public DynamicMethod dup() { DefaultMethod newMethod = new DefaultMethod(getImplementationClass(), staticScope, body, name, argsNode, getVisibility(), position); newMethod.setIsBuiltin(this.builtin); newMethod.box = this.box; return newMethod; }
if (method.getImplementationClass().isSingleton()) { IRubyObject possibleRealClass = ((MetaClass) method.getImplementationClass()).getAttached(); if (possibleRealClass instanceof RubyModule) { excludeModuleName = "Meta:" + ((RubyModule) possibleRealClass).getName();
if (method.getImplementationClass().isSingleton()) { IRubyObject possibleRealClass = ((MetaClass) method.getImplementationClass()).getAttached(); if (possibleRealClass instanceof RubyModule) { excludeModuleName = "Meta:" + ((RubyModule) possibleRealClass).getName();