diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/ControlFlowException.java @ 7666:31540ca73e81

Remove ControlFlowException in SimpleLanguage.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 01 Feb 2013 19:53:52 +0100
parents 386b00821c66
children 8b7996916df6
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/ControlFlowException.java	Fri Feb 01 19:50:04 2013 +0100
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/ControlFlowException.java	Fri Feb 01 19:53:52 2013 +0100
@@ -26,14 +26,21 @@
  * An exception thrown to model control flow in a Truffle interpreter. The Truffle optimizer has
  * special knowledge of this exception class for performance optimizations.
  */
-public class ControlFlowException extends Exception {
+public class ControlFlowException extends RuntimeException {
 
     private static final long serialVersionUID = 3676602078425211386L;
 
     /**
      * Creates an exception thrown to model control flow.
      */
-    public ControlFlowException(String message, Throwable cause) {
-        super(message, cause);
+    public ControlFlowException() {
+    }
+
+    /**
+     * For performance reasons, this exception does not record any stack trace information.
+     */
+    @Override
+    public synchronized Throwable fillInStackTrace() {
+        return null;
     }
 }