# HG changeset patch # User Michael Van De Vanter # Date 1427853402 25200 # Node ID d7c48ee7ed4b7d000e911e1b373c5578db729e83 # Parent b7477f2df5531b315aef1d2c0ca37139e51e7985 Truffle/Instrumentation: field renaming in ProbeNode diff -r b7477f2df553 -r d7c48ee7ed4b graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeNode.java --- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeNode.java Fri Mar 27 16:04:23 2015 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeNode.java Tue Mar 31 18:56:42 2015 -0700 @@ -129,7 +129,7 @@ /** * First {@link AbstractInstrumentNode} node in chain; {@code null} of no instruments in chain. */ - @Child protected AbstractInstrumentNode firstInstrument; + @Child protected AbstractInstrumentNode firstInstrumentNode; @Override public boolean isInstrumentable() { @@ -156,29 +156,29 @@ if (trap != null) { trap.tagTrappedAt(((WrapperNode) this.getParent()).getChild(), vFrame.materialize()); } - if (firstInstrument != null) { - firstInstrument.enter(node, vFrame); + if (firstInstrumentNode != null) { + firstInstrumentNode.enter(node, vFrame); } } public void returnVoid(Node node, VirtualFrame vFrame) { this.probe.checkProbeUnchanged(); - if (firstInstrument != null) { - firstInstrument.returnVoid(node, vFrame); + if (firstInstrumentNode != null) { + firstInstrumentNode.returnVoid(node, vFrame); } } public void returnValue(Node node, VirtualFrame vFrame, Object result) { this.probe.checkProbeUnchanged(); - if (firstInstrument != null) { - firstInstrument.returnValue(node, vFrame, result); + if (firstInstrumentNode != null) { + firstInstrumentNode.returnValue(node, vFrame, result); } } public void returnExceptional(Node node, VirtualFrame vFrame, Exception exception) { this.probe.checkProbeUnchanged(); - if (firstInstrument != null) { - firstInstrument.returnExceptional(node, vFrame, exception); + if (firstInstrumentNode != null) { + firstInstrumentNode.returnExceptional(node, vFrame, exception); } } @@ -194,7 +194,7 @@ assert instrument.getProbe() == probe; // The existing chain of nodes may be empty // Attach the modified chain. - firstInstrument = insert(instrument.addToChain(firstInstrument)); + firstInstrumentNode = insert(instrument.addToChain(firstInstrumentNode)); } /** @@ -205,11 +205,11 @@ @TruffleBoundary void removeInstrument(Instrument instrument) { assert instrument.getProbe() == probe; - final AbstractInstrumentNode modifiedChain = instrument.removeFromChain(firstInstrument); + final AbstractInstrumentNode modifiedChain = instrument.removeFromChain(firstInstrumentNode); if (modifiedChain == null) { - firstInstrument = null; + firstInstrumentNode = null; } else { - firstInstrument = insert(modifiedChain); + firstInstrumentNode = insert(modifiedChain); } }