public static CallSite bytelist(Lookup lookup, String name, MethodType type, String value, String encodingName) { return new ConstantCallSite(constant(ByteList.class, bytelist(value, encodingName))); }
public static CallSite bytelist(Lookup lookup, String name, MethodType type, String value, String encodingName) { return new ConstantCallSite(constant(ByteList.class, bytelist(value, encodingName))); }
public void pushByteList(ByteList bl) { adapter.invokedynamic("bytelist", sig(ByteList.class), Bootstrap.bytelist(), new String(bl.bytes(), RubyEncoding.ISO), bl.getEncoding().toString()); }
public void pushByteList(ByteList bl) { adapter.invokedynamic("bytelist", sig(ByteList.class), Bootstrap.bytelist(), new String(bl.bytes(), RubyEncoding.ISO), bl.getEncoding().toString()); }
public static CallSite fstring(Lookup lookup, String name, MethodType type, String value, String encodingName, int cr, String file, int line) { MutableCallSite site = new MutableCallSite(type); Binder binder = Binder .from(RubyString.class, ThreadContext.class) .insert(0, arrayOf(MutableCallSite.class, ByteList.class, int.class, String.class, int.class), site, bytelist(value, encodingName), cr, file, line); site.setTarget(binder.invokeStaticQuiet(lookup, Bootstrap.class, "frozenString")); return site; }
public static CallSite string(Lookup lookup, String name, MethodType type, String value, String encodingName, int cr) { MutableCallSite site = new MutableCallSite(type); Binder binder = Binder .from(RubyString.class, ThreadContext.class) .insert(0, arrayOf(MutableCallSite.class, ByteList.class, int.class), site, bytelist(value, encodingName), cr); site.setTarget(binder.invokeStaticQuiet(lookup, Bootstrap.class, "string")); return site; }
public static CallSite string(Lookup lookup, String name, MethodType type, String value, String encodingName, int cr) { MutableCallSite site = new MutableCallSite(type); Binder binder = Binder .from(RubyString.class, ThreadContext.class) .insert(0, arrayOf(MutableCallSite.class, ByteList.class, int.class), site, bytelist(value, encodingName), cr); site.setTarget(binder.invokeStaticQuiet(lookup, Bootstrap.class, "string")); return site; }
public static CallSite fstring(Lookup lookup, String name, MethodType type, String value, String encodingName, int cr, String file, int line) { MutableCallSite site = new MutableCallSite(type); Binder binder = Binder .from(RubyString.class, ThreadContext.class) .insert(0, arrayOf(MutableCallSite.class, ByteList.class, int.class, String.class, int.class), site, bytelist(value, encodingName), cr, file, line); site.setTarget(binder.invokeStaticQuiet(lookup, Bootstrap.class, "frozenString")); return site; }