Mercurial > hg > truffle
diff truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultProbeListener.java @ 22250:0fb3522e5b72
Truffle/Instrumentation: The ProbeListener start/stop methods now pass the RootNode instead of the Source; a comment on the RootNode constructor encourages implementations to provide *some* SourceSection instance with every RootNode, which may be one created by SourceSection.createUnavailable(String kind, String name) which makes tracing/debugging much more useful.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Thu, 24 Sep 2015 13:15:45 -0700 |
parents | dc83cc1f94f2 |
children |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultProbeListener.java Thu Sep 24 13:11:19 2015 -0700 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultProbeListener.java Thu Sep 24 13:15:45 2015 -0700 @@ -27,11 +27,11 @@ import com.oracle.truffle.api.instrument.Probe; import com.oracle.truffle.api.instrument.ProbeListener; import com.oracle.truffle.api.instrument.SyntaxTag; -import com.oracle.truffle.api.source.Source; +import com.oracle.truffle.api.nodes.RootNode; public abstract class DefaultProbeListener implements ProbeListener { - public void startASTProbing(Source source) { + public void startASTProbing(RootNode rootNode) { } public void newProbeInserted(Probe probe) { @@ -40,7 +40,7 @@ public void probeTaggedAs(Probe probe, SyntaxTag tag, Object tagValue) { } - public void endASTProbing(Source source) { + public void endASTProbing(RootNode rootNode) { } }