public SubstrateInstalledCodeImpl(SharedRuntimeMethod method) { super(method.format("%H.%n#(%p)")); }
try (Indent indent = debug.logAndIndent("create installed code of %s.%s", method.getDeclaringClass().getName(), method.getName())) { TargetDescription target = ConfigurationValues.getTarget();
public static EncodedGraph encodedGraph(SharedRuntimeMethod method, boolean trackNodeSourcePosition) { int startOffset = method.getEncodedGraphStartOffset(); if (startOffset == -1) { return null; } return new EncodedGraph(get().graphEncoding, startOffset, get().graphObjects, get().graphNodeTypes, null, null, null, false, trackNodeSourcePosition); }
public static StructuredGraph decodeGraph(DebugContext debug, String name, CompilationIdentifier compilationId, SharedRuntimeMethod method) { EncodedGraph encodedGraph = encodedGraph(method, false); if (encodedGraph == null) { return null; } boolean isSubstitution = method.getAnnotation(Snippet.class) != null || method.getAnnotation(MethodSubstitution.class) != null; StructuredGraph graph = new StructuredGraph.Builder(debug.getOptions(), debug).name(name).method(method).compilationId(compilationId).setIsSubstitution(isSubstitution).build(); GraphDecoder decoder = new GraphDecoder(ConfigurationValues.getTarget().arch, graph); decoder.decode(encodedGraph); return graph; }
public SubstrateInstalledCodeImpl(String name, SharedRuntimeMethod method) { super(name != null ? name : method.format("%H.%n#(%p)")); }