Mercurial > hg > truffle
comparison graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/MethodSubstitutionTest.java @ 12052:0afe7370260c
refactored constantEquals(), lookupArrayLength() and readUnsafeConstant() out of MetaAccessProvider into ConstantReflectionProvider (GRAAL-511)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 11 Oct 2013 12:19:09 +0200 |
parents | 0fc653a9e019 |
children | bba234a1670e |
comparison
equal
deleted
inserted
replaced
12051:9c2111d10e40 | 12052:0afe7370260c |
---|---|
49 @Override | 49 @Override |
50 public StructuredGraph call() { | 50 public StructuredGraph call() { |
51 StructuredGraph graph = parse(snippet); | 51 StructuredGraph graph = parse(snippet); |
52 PhasePlan phasePlan = getDefaultPhasePlan(); | 52 PhasePlan phasePlan = getDefaultPhasePlan(); |
53 Assumptions assumptions = new Assumptions(true); | 53 Assumptions assumptions = new Assumptions(true); |
54 HighTierContext context = new HighTierContext(getMetaAccess(), getCodeCache(), getLowerer(), assumptions, replacements, null, phasePlan, OptimisticOptimizations.ALL); | 54 HighTierContext context = new HighTierContext(getMetaAccess(), getCodeCache(), getConstantReflection(), getLowerer(), assumptions, replacements, null, phasePlan, OptimisticOptimizations.ALL); |
55 Debug.dump(graph, "Graph"); | 55 Debug.dump(graph, "Graph"); |
56 new InliningPhase(new CanonicalizerPhase(true)).apply(graph, context); | 56 new InliningPhase(new CanonicalizerPhase(true)).apply(graph, context); |
57 Debug.dump(graph, "Graph"); | 57 Debug.dump(graph, "Graph"); |
58 new CanonicalizerPhase(true).apply(graph, context); | 58 new CanonicalizerPhase(true).apply(graph, context); |
59 new DeadCodeEliminationPhase().apply(graph); | 59 new DeadCodeEliminationPhase().apply(graph); |