public static void setGlobalFallback(GlobalSite site, IRubyObject value, ThreadContext context) throws Throwable { Ruby runtime = context.runtime; GlobalVariable variable = runtime.getGlobalVariables().getVariable(site.name()); MethodHandle uncached = lookup().findStatic(Bootstrap.class, "setGlobalUncached", methodType(void.class, GlobalVariable.class, IRubyObject.class)); uncached = uncached.bindTo(variable); uncached = dropArguments(uncached, 1, ThreadContext.class); site.setTarget(uncached); uncached.invokeWithArguments(value, context); }
public static void setGlobalFallback(GlobalSite site, IRubyObject value, ThreadContext context) throws Throwable { Ruby runtime = context.runtime; GlobalVariable variable = runtime.getGlobalVariables().getVariable(site.name()); MethodHandle uncached = lookup().findStatic(Bootstrap.class, "setGlobalUncached", methodType(void.class, GlobalVariable.class, IRubyObject.class)); uncached = uncached.bindTo(variable); uncached = dropArguments(uncached, 1, ThreadContext.class); site.setTarget(uncached); uncached.invokeWithArguments(value, context); }
public static IRubyObject getGlobalFallback(GlobalSite site, ThreadContext context) throws Throwable { Ruby runtime = context.runtime; GlobalVariable variable = runtime.getGlobalVariables().getVariable(site.name());
public static IRubyObject getGlobalFallback(GlobalSite site, ThreadContext context) throws Throwable { Ruby runtime = context.runtime; GlobalVariable variable = runtime.getGlobalVariables().getVariable(site.name());
public static IRubyObject getGlobalFallback(GlobalSite site, ThreadContext context) throws Throwable { Ruby runtime = context.runtime; GlobalVariable variable = runtime.getGlobalVariables().getVariable(site.name);
public static IRubyObject getGlobalFallback(GlobalSite site, ThreadContext context) throws Throwable { Ruby runtime = context.runtime; GlobalVariable variable = runtime.getGlobalVariables().getVariable(site.name);
public static boolean getGlobalBooleanFallback(GlobalSite site, ThreadContext context) throws Throwable { Ruby runtime = context.runtime; GlobalVariable variable = runtime.getGlobalVariables().getVariable(site.name);
public static boolean getGlobalBooleanFallback(GlobalSite site, ThreadContext context) throws Throwable { Ruby runtime = context.runtime; GlobalVariable variable = runtime.getGlobalVariables().getVariable(site.name);