Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/instrument/SLStatementWrapperNode.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 | e3c95cbbb50c |
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. |
49 public String instrumentationInfo() { | 49 public String instrumentationInfo() { |
50 return "Wrapper node for SL Statements"; | 50 return "Wrapper node for SL Statements"; |
51 } | 51 } |
52 | 52 |
53 @Override | 53 @Override |
54 public boolean isInstrumentable() { | |
55 return false; | |
56 } | |
57 | |
58 @Override | |
54 public SLStatementNode getNonWrapperNode() { | 59 public SLStatementNode getNonWrapperNode() { |
55 return child; | 60 return child; |
56 } | 61 } |
57 | 62 |
58 public void insertProbe(ProbeNode newProbeNode) { | 63 public void insertProbe(ProbeNode newProbeNode) { |
85 probeNode.returnExceptional(child, frame, e); | 90 probeNode.returnExceptional(child, frame, e); |
86 throw (e); | 91 throw (e); |
87 } | 92 } |
88 } | 93 } |
89 | 94 |
90 @Override | |
91 public Probe probe() { | |
92 throw new IllegalStateException("Cannot call probe() on a wrapper."); | |
93 } | |
94 | |
95 @Override | |
96 public void probeLite(TruffleEventReceiver eventReceiver) { | |
97 throw new IllegalStateException("Cannot call probeLite() on a wrapper."); | |
98 } | |
99 } | 95 } |