Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeNode.java @ 22066:78c3d3d8d86e
Clearly separating the TruffleLanguage definition from context used during its execution. TruffleLanguage now has to have public static field INSTANCE and override createContext method.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 06 Aug 2015 08:31:49 +0200 |
parents | 5bc7f7b867ab |
children | dc83cc1f94f2 3aad794eec0e |
comparison
equal
deleted
inserted
replaced
22065:503529c65456 | 22066:78c3d3d8d86e |
---|---|
116 | 116 |
117 /** | 117 /** |
118 * Create a new {@link Probe} associated with, and attached to, a Guest Language specific | 118 * Create a new {@link Probe} associated with, and attached to, a Guest Language specific |
119 * instance of {@link WrapperNode}. | 119 * instance of {@link WrapperNode}. |
120 */ | 120 */ |
121 @SuppressWarnings("rawtypes") | |
121 public static Probe insertProbe(WrapperNode wrapper) { | 122 public static Probe insertProbe(WrapperNode wrapper) { |
122 final SourceSection sourceSection = wrapper.getChild().getSourceSection(); | 123 final SourceSection sourceSection = wrapper.getChild().getSourceSection(); |
123 final ProbeNode probeNode = new ProbeNode(); // private constructor | 124 final ProbeNode probeNode = new ProbeNode(); // private constructor |
124 Class<? extends TruffleLanguage> l = Probe.ACCESSOR.findLanguage(wrapper.getChild().getRootNode()); | 125 Class<? extends TruffleLanguage> l = Probe.ACCESSOR.findLanguage(wrapper.getChild().getRootNode()); |
125 probeNode.probe = new Probe(l, probeNode, sourceSection); // package private access | 126 probeNode.probe = new Probe(l, probeNode, sourceSection); // package private access |