Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/OptimizationFailedException.java @ 17598:a3464d86b5d2
Truffle: OptimizationFailedException references the CallTarget instead of the RootNode.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Wed, 15 Oct 2014 18:19:48 +0100 |
parents | b06b4dee86d5 |
children | afbb8100ac92 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/OptimizationFailedException.java Wed Oct 15 18:09:38 2014 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/OptimizationFailedException.java Wed Oct 15 18:19:48 2014 +0100 @@ -24,19 +24,17 @@ */ package com.oracle.truffle.api; -import com.oracle.truffle.api.nodes.*; - public class OptimizationFailedException extends RuntimeException { - private final RootNode rootNode; + private final CallTarget callTarget; - public OptimizationFailedException(Throwable cause, RootNode rootNode) { + public OptimizationFailedException(Throwable cause, CallTarget callTarget) { super(cause); - this.rootNode = rootNode; + this.callTarget = callTarget; } - public RootNode getRootNode() { - return rootNode; + public CallTarget getCallTarget() { + return callTarget; } private static final long serialVersionUID = -8797188744430210785L;