Mercurial > hg > graal-compiler
changeset 18498:a65cbe5432dd
only register AMD64Substitutions if the target architecture is AMD64
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 24 Nov 2014 23:29:13 +0100 |
parents | 27d65fe58fef |
children | bd74da0a76f3 |
files | graal/com.oracle.graal.replacements.amd64/src/com/oracle/graal/replacements/amd64/AMD64Substitutions.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements.amd64/src/com/oracle/graal/replacements/amd64/AMD64Substitutions.java Mon Nov 24 11:48:24 2014 -0800 +++ b/graal/com.oracle.graal.replacements.amd64/src/com/oracle/graal/replacements/amd64/AMD64Substitutions.java Mon Nov 24 23:29:13 2014 +0100 @@ -27,6 +27,7 @@ import java.util.*; +import com.oracle.graal.amd64.*; import com.oracle.graal.api.code.*; import com.oracle.graal.api.meta.*; import com.oracle.graal.api.replacements.*; @@ -41,7 +42,7 @@ public class AMD64Substitutions implements ReplacementsProvider { public void registerReplacements(MetaAccessProvider metaAccess, LoweringProvider lowerer, SnippetReflectionProvider snippetReflection, Replacements replacements, TargetDescription target) { - if (Intrinsify.getValue()) { + if (Intrinsify.getValue() && target.arch instanceof AMD64) { replacements.registerSubstitutions(Arrays.class, ArraysSubstitutions.class); replacements.registerSubstitutions(String.class, StringSubstitutions.class); replacements.registerSubstitutions(Integer.class, AMD64IntegerSubstitutions.class);