use of org.graalvm.compiler.truffle.common.hotspot.libgraal.TruffleFromLibGraal.Id.CompilableToString in project graal by oracle.
the class HSCompilableTruffleAST method toString.
@TruffleFromLibGraal(CompilableToString)
@Override
public String toString() {
String res = cachedString;
if (res == null) {
JNIEnv env = JNIMethodScope.env();
JString value = callCompilableToString(env, getHandle());
res = createString(env, value);
cachedString = res;
}
return res;
}
Aggregations