use of org.graalvm.compiler.nodes.GraphDecoder in project graal by oracle.
the class GraalSupport method decodeGraph.
public static StructuredGraph decodeGraph(DebugContext debug, String name, CompilationIdentifier compilationId, SharedRuntimeMethod method) {
// XXX
EncodedGraph encodedGraph = encodedGraph(method, false);
if (encodedGraph == null) {
return null;
}
StructuredGraph graph = new StructuredGraph.Builder(debug.getOptions(), debug).name(name).method(method).compilationId(compilationId).build();
GraphDecoder decoder = new GraphDecoder(ConfigurationValues.getTarget().arch, graph);
decoder.decode(encodedGraph);
return graph;
}
Aggregations