< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements/src/org/graalvm/compiler/replacements/JDK9StringSubstitutions.java

Print this page
rev 52509 : [mq]: graal2

*** 73,78 **** --- 73,82 ---- * Will be intrinsified with an {@link InvocationPlugin} to a {@link LoadFieldNode}. */ public static native byte[] getValue(String s); public static native int getCoder(String s); + + public static boolean isCompactString(String s) { + return getCoder(s) == 0; + } }
< prev index next >