Mercurial > hg > truffle
changeset 22336:5e37933270b0
Change signature of EventHandlerNode.returnExceptional to accept Throwable
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/instrument/InstrumentationTest.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/instrument/InstrumentationTest.java Mon Oct 19 18:27:52 2015 +0200 @@ -243,10 +243,9 @@ leaveCount++; } - public void onReturnExceptional(Probe p, Exception exception) { + public void onReturnExceptional(Probe p, Throwable exception) { leaveCount++; } - }, "Instrumentation Test Counter"); } @@ -296,10 +295,9 @@ leaveCount++; } - public void onReturnExceptional(Probe p, Node node, VirtualFrame vFrame, Exception exception) { + public void onReturnExceptional(Probe p, Node node, VirtualFrame vFrame, Throwable exception) { leaveCount++; } - }, "Instrumentation Test Counter"); }
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/Debugger.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/Debugger.java Mon Oct 19 18:27:52 2015 +0200 @@ -423,7 +423,7 @@ doHalt(node, vFrame.materialize()); } - public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Exception exception) { + public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Throwable exception) { doHalt(node, vFrame.materialize()); } @@ -481,7 +481,7 @@ doHalt(node, vFrame.materialize()); } - public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Exception exception) { + public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Throwable exception) { doHalt(node, vFrame.materialize()); } @@ -564,7 +564,7 @@ doHalt(node, vFrame.materialize()); } - public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Exception exception) { + public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Throwable exception) { doHalt(node, vFrame.materialize()); }
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/EventHandlerNode.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/EventHandlerNode.java Mon Oct 19 18:27:52 2015 +0200 @@ -54,7 +54,7 @@ /** * An AST Node's execute method has just thrown an exception. */ - public abstract void returnExceptional(Node node, VirtualFrame vFrame, Exception exception); + public abstract void returnExceptional(Node node, VirtualFrame vFrame, Throwable exception); /** * Gets the {@link Probe} that manages this chain of event handling.
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeInstrument.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeInstrument.java Mon Oct 19 18:27:52 2015 +0200 @@ -223,7 +223,7 @@ } @Override - public void returnExceptional(Node node, VirtualFrame vFrame, Exception exception) { + public void returnExceptional(Node node, VirtualFrame vFrame, Throwable exception) { SimpleInstrument.this.simpleListener.onReturnExceptional(SimpleInstrument.this.probe, exception); if (nextInstrumentNode != null) { nextInstrumentNode.returnExceptional(node, vFrame, exception); @@ -315,7 +315,7 @@ } @Override - public void returnExceptional(Node node, VirtualFrame vFrame, Exception exception) { + public void returnExceptional(Node node, VirtualFrame vFrame, Throwable exception) { standardListener.onReturnExceptional(StandardInstrument.this.probe, node, vFrame, exception); if (nextInstrumentNode != null) { nextInstrumentNode.returnExceptional(node, vFrame, exception); @@ -437,7 +437,7 @@ } @Override - public void returnExceptional(Node node, VirtualFrame vFrame, Exception exception) { + public void returnExceptional(Node node, VirtualFrame vFrame, Throwable exception) { if (nextInstrumentNode != null) { nextInstrumentNode.returnExceptional(node, vFrame, exception); } @@ -524,7 +524,7 @@ } @Override - public void returnExceptional(Node node, VirtualFrame vFrame, Exception exception) { + public void returnExceptional(Node node, VirtualFrame vFrame, Throwable exception) { if (nextInstrumentNode != null) { nextInstrumentNode.returnExceptional(node, vFrame, exception); }
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeNode.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeNode.java Mon Oct 19 18:27:52 2015 +0200 @@ -110,7 +110,7 @@ } @Override - public void returnExceptional(Node node, VirtualFrame vFrame, Exception exception) { + public void returnExceptional(Node node, VirtualFrame vFrame, Throwable exception) { this.probe.checkProbeUnchanged(); if (firstInstrumentNode != null) { firstInstrumentNode.returnExceptional(node, vFrame, exception);
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/SimpleInstrumentListener.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/SimpleInstrumentListener.java Mon Oct 19 18:27:52 2015 +0200 @@ -74,5 +74,5 @@ * <p> * <strong>Synchronous</strong>: Truffle execution waits until the call returns. */ - void onReturnExceptional(Probe probe, Exception exception); + void onReturnExceptional(Probe probe, Throwable exception); }
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardAfterInstrumentListener.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardAfterInstrumentListener.java Mon Oct 19 18:27:52 2015 +0200 @@ -68,5 +68,5 @@ * <p> * <strong>Synchronous</strong>: Truffle execution waits until the call returns. */ - void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Exception exception); + void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Throwable exception); }
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardInstrumentListener.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardInstrumentListener.java Mon Oct 19 18:27:52 2015 +0200 @@ -74,5 +74,5 @@ * <p> * <strong>Synchronous</strong>: Truffle execution waits until the call returns. */ - void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Exception exception); + void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Throwable exception); }
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultSimpleInstrumentListener.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultSimpleInstrumentListener.java Mon Oct 19 18:27:52 2015 +0200 @@ -41,6 +41,6 @@ public void onReturnValue(Probe probe, Object result) { } - public void onReturnExceptional(Probe probe, Exception exception) { + public void onReturnExceptional(Probe probe, Throwable exception) { } }
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultStandardInstrumentListener.java Mon Nov 02 19:13:21 2015 +0100 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultStandardInstrumentListener.java Mon Oct 19 18:27:52 2015 +0200 @@ -44,7 +44,6 @@ public void onReturnValue(Probe probe, Node node, VirtualFrame vFrame, Object result) { } - public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Exception exception) { + public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Throwable exception) { } - }