/** * Accessor to the instrumented node at which the event occurred. The returned AST must not be * mutated by the user. * <p> * <b>Performance note:</b> this is method may be invoked in compiled code and is guaranteed to * always return a compilation constant . * </p> * * @since 0.12 */ @SuppressWarnings("deprecation") public Node getInstrumentedNode() { com.oracle.truffle.api.instrumentation.InstrumentableFactory.WrapperNode wrapper = probeNode.findWrapper(); return wrapper != null ? wrapper.getDelegateNode() : null; }
/** * Accessor to the instrumented node at which the event occurred. The returned AST must not be * mutated by the user. * <p> * <b>Performance note:</b> this is method may be invoked in compiled code and is guaranteed to * always return a compilation constant . * </p> * * @since 0.12 */ @SuppressWarnings("deprecation") public Node getInstrumentedNode() { com.oracle.truffle.api.instrumentation.InstrumentableFactory.WrapperNode wrapper = probeNode.findWrapper(); return wrapper != null ? wrapper.getDelegateNode() : null; }
@SuppressWarnings("deprecation") static void removeWrapper(ProbeNode node) { if (TRACE) { trace("Remove wrapper for %s%n", node.getContext().getInstrumentedSourceSection()); } com.oracle.truffle.api.instrumentation.InstrumentableFactory.WrapperNode wrapperNode = node.findWrapper(); ((Node) wrapperNode).replace(wrapperNode.getDelegateNode()); }
@SuppressWarnings("deprecation") static void removeWrapper(ProbeNode node) { if (TRACE) { trace("Remove wrapper for %s%n", node.getContext().getInstrumentedSourceSection()); } com.oracle.truffle.api.instrumentation.InstrumentableFactory.WrapperNode wrapperNode = node.findWrapper(); ((Node) wrapperNode).replace(wrapperNode.getDelegateNode()); }