comparison graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/info/elem/InlineableGraph.java @ 20835:a2cd0e7072e2

added MethodSubstitutionPlugin as (eventual) replacement for @MethodSubstitution mechanism
author Doug Simon <doug.simon@oracle.com>
date Tue, 07 Apr 2015 17:32:26 +0200
parents cc3131ff7ce2
children d31e8e4822c3
comparison
equal deleted inserted replaced
20834:e807c6f675de 20835:a2cd0e7072e2
69 * This method looks up in a cache the graph for the argument, if not found bytecode is parsed. 69 * This method looks up in a cache the graph for the argument, if not found bytecode is parsed.
70 * The graph thus obtained is returned, ie the caller is responsible for cloning before 70 * The graph thus obtained is returned, ie the caller is responsible for cloning before
71 * modification. 71 * modification.
72 */ 72 */
73 private static StructuredGraph getOriginalGraph(final ResolvedJavaMethod method, final HighTierContext context, CanonicalizerPhase canonicalizer, StructuredGraph caller) { 73 private static StructuredGraph getOriginalGraph(final ResolvedJavaMethod method, final HighTierContext context, CanonicalizerPhase canonicalizer, StructuredGraph caller) {
74 if (method.getName().equals("hashCode")) {
75 System.console();
76 }
74 StructuredGraph result = InliningUtil.getIntrinsicGraph(context.getReplacements(), method); 77 StructuredGraph result = InliningUtil.getIntrinsicGraph(context.getReplacements(), method);
75 if (result != null) { 78 if (result != null) {
76 return result; 79 return result;
77 } 80 }
78 return parseBytecodes(method, context, canonicalizer, caller); 81 return parseBytecodes(method, context, canonicalizer, caller);