Mercurial > hg > graal-compiler
changeset 20104:d7c48ee7ed4b
Truffle/Instrumentation: field renaming in ProbeNode
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 31 Mar 2015 18:56:42 -0700 |
parents | b7477f2df553 |
children | e73096245a4c |
files | graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeNode.java |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }