comparison 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
comparison
equal deleted inserted replaced
7665:386b00821c66 7666:31540ca73e81
24 24
25 /** 25 /**
26 * An exception thrown to model control flow in a Truffle interpreter. The Truffle optimizer has 26 * An exception thrown to model control flow in a Truffle interpreter. The Truffle optimizer has
27 * special knowledge of this exception class for performance optimizations. 27 * special knowledge of this exception class for performance optimizations.
28 */ 28 */
29 public class ControlFlowException extends Exception { 29 public class ControlFlowException extends RuntimeException {
30 30
31 private static final long serialVersionUID = 3676602078425211386L; 31 private static final long serialVersionUID = 3676602078425211386L;
32 32
33 /** 33 /**
34 * Creates an exception thrown to model control flow. 34 * Creates an exception thrown to model control flow.
35 */ 35 */
36 public ControlFlowException(String message, Throwable cause) { 36 public ControlFlowException() {
37 super(message, cause); 37 }
38
39 /**
40 * For performance reasons, this exception does not record any stack trace information.
41 */
42 @Override
43 public synchronized Throwable fillInStackTrace() {
44 return null;
38 } 45 }
39 } 46 }