Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/BoxingSnippets.java @ 10064:5749b583efe1
BoxingSnippets: don't embed constants if in AOT mode (GRAAL-290)
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Sun, 16 Jun 2013 23:55:21 +0200 |
parents | 063a712fe8d8 |
children | e8fbc5fd3440 |
comparison
equal
deleted
inserted
replaced
10063:9e688291fc53 | 10064:5749b583efe1 |
---|---|
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 public void lower(BoxNode box) { | 216 public void lower(BoxNode box) { |
217 FloatingNode canonical = canonicalizeBoxing(box, runtime); | 217 FloatingNode canonical = canonicalizeBoxing(box, runtime); |
218 if (canonical != null) { | 218 if (!AOTCompilation.getValue() && canonical != null) { |
219 box.graph().replaceFixedWithFloating(box, canonical); | 219 box.graph().replaceFixedWithFloating(box, canonical); |
220 } else { | 220 } else { |
221 Arguments args = new Arguments(boxSnippets.get(box.getBoxingKind())); | 221 Arguments args = new Arguments(boxSnippets.get(box.getBoxingKind())); |
222 args.add("value", box.getValue()); | 222 args.add("value", box.getValue()); |
223 | 223 |