Mercurial > hg > graal-compiler
changeset 22440:444a23d7c7e9
CompositeValue: rename forEachComponent to visitEachComponent.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Tue, 11 Aug 2015 17:39:42 +0200 |
parents | 79ea15cd3701 |
children | 06d082407489 |
files | graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64AddressValue.java graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCImmediateAddressValue.java graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCIndexedAddressValue.java graal/com.oracle.graal.lir.test/src/com/oracle/graal/lir/test/CompositeValueReplacementTest1.java graal/com.oracle.graal.lir/src/com/oracle/graal/lir/CompositeValue.java graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRIntrospection.java |
diffstat | 6 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64AddressValue.java Thu Aug 13 11:17:59 2015 +0200 +++ b/graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64AddressValue.java Tue Aug 11 17:39:42 2015 +0200 @@ -70,7 +70,7 @@ } @Override - protected void forEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { + protected void visitEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { proc.visitValue(inst, base, mode, flags); proc.visitValue(inst, index, mode, flags); }
--- a/graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCImmediateAddressValue.java Thu Aug 13 11:17:59 2015 +0200 +++ b/graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCImmediateAddressValue.java Tue Aug 11 17:39:42 2015 +0200 @@ -58,7 +58,7 @@ } @Override - protected void forEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { + protected void visitEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { proc.visitValue(inst, base, mode, flags); }
--- a/graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCIndexedAddressValue.java Thu Aug 13 11:17:59 2015 +0200 +++ b/graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCIndexedAddressValue.java Tue Aug 11 17:39:42 2015 +0200 @@ -58,7 +58,7 @@ } @Override - protected void forEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { + protected void visitEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { proc.visitValue(inst, base, mode, flags); proc.visitValue(inst, index, mode, flags); }
--- a/graal/com.oracle.graal.lir.test/src/com/oracle/graal/lir/test/CompositeValueReplacementTest1.java Thu Aug 13 11:17:59 2015 +0200 +++ b/graal/com.oracle.graal.lir.test/src/com/oracle/graal/lir/test/CompositeValueReplacementTest1.java Tue Aug 11 17:39:42 2015 +0200 @@ -63,7 +63,7 @@ } @Override - protected void forEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { + protected void visitEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc) { proc.visitValue(inst, value, mode, flags); } }
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/CompositeValue.java Thu Aug 13 11:17:59 2015 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/CompositeValue.java Tue Aug 11 17:39:42 2015 +0200 @@ -90,7 +90,7 @@ return newValues != null ? newValues : values; } - protected abstract void forEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc); + protected abstract void visitEachComponent(LIRInstruction inst, OperandMode mode, InstructionValueConsumer proc); @Override public String toString() {
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRIntrospection.java Thu Aug 13 11:17:59 2015 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRIntrospection.java Tue Aug 11 17:39:42 2015 +0200 @@ -244,7 +244,7 @@ Value value = values.getValue(inst, i); if (value instanceof CompositeValue) { CompositeValue composite = (CompositeValue) value; - composite.forEachComponent(inst, mode, proc); + composite.visitEachComponent(inst, mode, proc); } else { proc.visitValue(inst, value, mode, values.getFlags(i)); } @@ -254,7 +254,7 @@ Value value = valueArray[j]; if (value instanceof CompositeValue) { CompositeValue composite = (CompositeValue) value; - composite.forEachComponent(inst, mode, proc); + composite.visitEachComponent(inst, mode, proc); } else { proc.visitValue(inst, value, mode, values.getFlags(i)); }