Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
14865:ae7cbf13e765 | 14866:a0185cd77565 |
---|---|
22 * or visit www.oracle.com if you need additional information or have any | 22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. | 23 * questions. |
24 */ | 24 */ |
25 package com.oracle.truffle.api.nodes; | 25 package com.oracle.truffle.api.nodes; |
26 | 26 |
27 import com.oracle.truffle.api.*; | |
28 | |
27 /** | 29 /** |
28 * An exception that should be thrown if the return value cannot be represented as a value of the | 30 * An exception that should be thrown if the return value cannot be represented as a value of the |
29 * return type. The Truffle optimizer has special knowledge of this exception class and will never | 31 * return type. The Truffle optimizer has special knowledge of this exception class and will never |
30 * compile a catch block that catches this exception type. | 32 * compile a catch block that catches this exception type. |
31 */ | 33 */ |
39 * the return type. | 41 * the return type. |
40 * | 42 * |
41 * @param result the alternative result | 43 * @param result the alternative result |
42 */ | 44 */ |
43 public UnexpectedResultException(Object result) { | 45 public UnexpectedResultException(Object result) { |
46 CompilerDirectives.transferToInterpreter(); | |
44 this.result = result; | 47 this.result = result; |
45 } | 48 } |
46 | 49 |
47 /** | 50 /** |
48 * @return the unexpected result | 51 * @return the unexpected result |