comparison truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLStatementNode.java @ 22220:20380d1d41f2

Truffle/Instrumentation: second merge of instrumentation code into the TruffleVM framework - deprecate Node.isInstrumentable() and Node.createWrapperNode(), now Instrumenter methods - Instrumenter uses new Accessor methods to delegate implementation to TruffleLanguage implementations - rework many instrumentation-related tests
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Thu, 17 Sep 2015 21:23:57 -0700
parents dc83cc1f94f2
children c896a8e70777
comparison
equal deleted inserted replaced
22219:1c0f490984d5 22220:20380d1d41f2
38 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 38 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39 * SOFTWARE. 39 * SOFTWARE.
40 */ 40 */
41 package com.oracle.truffle.sl.nodes; 41 package com.oracle.truffle.sl.nodes;
42 42
43 import java.io.File;
44
43 import com.oracle.truffle.api.frame.VirtualFrame; 45 import com.oracle.truffle.api.frame.VirtualFrame;
44 import com.oracle.truffle.api.instrument.ProbeNode.WrapperNode; 46 import com.oracle.truffle.api.instrument.ProbeNode.WrapperNode;
45 import com.oracle.truffle.api.nodes.Node; 47 import com.oracle.truffle.api.nodes.Node;
46 import com.oracle.truffle.api.nodes.NodeInfo; 48 import com.oracle.truffle.api.nodes.NodeInfo;
47 import com.oracle.truffle.api.source.SourceSection; 49 import com.oracle.truffle.api.source.SourceSection;
48 import com.oracle.truffle.sl.nodes.instrument.SLStatementWrapperNode;
49 import java.io.File;
50 50
51 /** 51 /**
52 * The base class of all Truffle nodes for SL. All nodes (even expressions) can be used as 52 * The base class of all Truffle nodes for SL. All nodes (even expressions) can be used as
53 * statements, i.e., without returning a value. The {@link VirtualFrame} provides access to the 53 * statements, i.e., without returning a value. The {@link VirtualFrame} provides access to the
54 * local variables. 54 * local variables.
100 int startLine = section.getStartLine(); 100 int startLine = section.getStartLine();
101 return String.format("%s:%d%s", sourceName, startLine, estimated ? "~" : ""); 101 return String.format("%s:%d%s", sourceName, startLine, estimated ? "~" : "");
102 } 102 }
103 } 103 }
104 104
105 @SuppressWarnings("deprecation")
105 @Override 106 @Override
106 public boolean isInstrumentable() { 107 public boolean isInstrumentable() {
107 return true; 108 return true;
108 } 109 }
109 110
111 @SuppressWarnings("deprecation")
110 @Override 112 @Override
111 public WrapperNode createWrapperNode() { 113 public WrapperNode createWrapperNode() {
112 return new SLStatementWrapperNode(this); 114 throw new UnsupportedOperationException();
113 } 115 }
114 116
115 } 117 }