Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/InstanceOfSnippets.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 |
---|---|
198 private final SnippetInfo instanceofExact = snippet(InstanceOfSnippets.class, "instanceofExact"); | 198 private final SnippetInfo instanceofExact = snippet(InstanceOfSnippets.class, "instanceofExact"); |
199 private final SnippetInfo instanceofPrimary = snippet(InstanceOfSnippets.class, "instanceofPrimary"); | 199 private final SnippetInfo instanceofPrimary = snippet(InstanceOfSnippets.class, "instanceofPrimary"); |
200 private final SnippetInfo instanceofSecondary = snippet(InstanceOfSnippets.class, "instanceofSecondary"); | 200 private final SnippetInfo instanceofSecondary = snippet(InstanceOfSnippets.class, "instanceofSecondary"); |
201 private final SnippetInfo instanceofDynamic = snippet(InstanceOfSnippets.class, "instanceofDynamic"); | 201 private final SnippetInfo instanceofDynamic = snippet(InstanceOfSnippets.class, "instanceofDynamic"); |
202 | 202 |
203 public Templates(MetaAccessProvider metaAccess, CodeCacheProvider codeCache, LoweringProvider lowerer, Replacements replacements, TargetDescription target) { | 203 public Templates(MetaAccessProvider metaAccess, ConstantReflectionProvider constantReflection, CodeCacheProvider codeCache, LoweringProvider lowerer, Replacements replacements, |
204 super(metaAccess, codeCache, lowerer, replacements, target); | 204 TargetDescription target) { |
205 super(metaAccess, constantReflection, codeCache, lowerer, replacements, target); | |
205 } | 206 } |
206 | 207 |
207 @Override | 208 @Override |
208 protected Arguments makeArguments(InstanceOfUsageReplacer replacer, LoweringTool tool) { | 209 protected Arguments makeArguments(InstanceOfUsageReplacer replacer, LoweringTool tool) { |
209 if (replacer.instanceOf instanceof InstanceOfNode) { | 210 if (replacer.instanceOf instanceof InstanceOfNode) { |