Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir.test/src/com/oracle/graal/lir/test/CompositeValueReplacementTest1.java @ 20974:1af76d197949
Specialize LIRInstruction visit paths a little
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 14 Apr 2015 11:36:48 -0700 |
parents | cb406df0ecc3 |
children | 082417ac43e4 |
comparison
equal
deleted
inserted
replaced
20973:cb406df0ecc3 | 20974:1af76d197949 |
---|---|
58 Value newValue = proc.doValue(inst, value, mode, flags); | 58 Value newValue = proc.doValue(inst, value, mode, flags); |
59 if (!value.identityEquals(newValue)) { | 59 if (!value.identityEquals(newValue)) { |
60 return new TestCompositeValue(newValue); | 60 return new TestCompositeValue(newValue); |
61 } | 61 } |
62 return this; | 62 return this; |
63 } | |
64 | |
65 @Override | |
66 protected void forEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { | |
67 proc.visitValue(inst, value, mode, flags); | |
63 } | 68 } |
64 } | 69 } |
65 | 70 |
66 private static class DummyValue extends AbstractValue { | 71 private static class DummyValue extends AbstractValue { |
67 | 72 |