comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/instrument/SLExpressionWrapperNode.java @ 18990:d1c1cd2530d7

Truffle/Instrumentation: clean up and repair some old unit tests
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 27 Jan 2015 20:28:43 -0800
parents ccb97347d874
children b5467bb34b24
comparison
equal deleted inserted replaced
18989:acd822f17ef5 18990:d1c1cd2530d7
1 /* 1 /*
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
53 this.child = child; 53 this.child = child;
54 } 54 }
55 55
56 public String instrumentationInfo() { 56 public String instrumentationInfo() {
57 return "Wrapper node for SL Expressions"; 57 return "Wrapper node for SL Expressions";
58 }
59
60 @Override
61 public boolean isInstrumentable() {
62 return false;
58 } 63 }
59 64
60 @Override 65 @Override
61 public SLExpressionNode getNonWrapperNode() { 66 public SLExpressionNode getNonWrapperNode() {
62 return child; 67 return child;
131 136
132 @Override 137 @Override
133 public SLNull executeNull(VirtualFrame frame) throws UnexpectedResultException { 138 public SLNull executeNull(VirtualFrame frame) throws UnexpectedResultException {
134 return SLTypesGen.expectSLNull(executeGeneric(frame)); 139 return SLTypesGen.expectSLNull(executeGeneric(frame));
135 } 140 }
136
137 @Override
138 public Probe probe() {
139 throw new IllegalStateException("Cannot call probe() on a wrapper.");
140 }
141
142 @Override
143 public void probeLite(TruffleEventReceiver eventReceiver) {
144 throw new IllegalStateException("Cannot call probeLite() on a wrapper.");
145 }
146 } 141 }