Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/UnexpectedResultException.java @ 14866:a0185cd77565
Truffle: refactor ompilation related classes for SubstrateVM
author | Erik Eckstein <erik.eckstein@oracle.com> |
---|---|
date | Fri, 28 Mar 2014 08:38:49 +0100 |
parents | ce79de7da9ab |
children | 1cde96b96673 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/UnexpectedResultException.java Fri Mar 28 08:26:21 2014 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/UnexpectedResultException.java Fri Mar 28 08:38:49 2014 +0100 @@ -24,6 +24,8 @@ */ package com.oracle.truffle.api.nodes; +import com.oracle.truffle.api.*; + /** * An exception that should be thrown if the return value cannot be represented as a value of the * return type. The Truffle optimizer has special knowledge of this exception class and will never @@ -41,6 +43,7 @@ * @param result the alternative result */ public UnexpectedResultException(Object result) { + CompilerDirectives.transferToInterpreter(); this.result = result; }