Mercurial > hg > truffle
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/SwitchNode.java @ 21543:93c50cefb9e8
moved GraalInternalError to com.oracle.jvmci.common and renamed it to JVMCIError (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 25 May 2015 23:30:34 +0200 |
parents | f25111ca1225 |
children | 48c1ebd24120 |
comparison
equal
deleted
inserted
replaced
21542:543957c1c6a6 | 21543:93c50cefb9e8 |
---|---|
23 package com.oracle.graal.nodes.extended; | 23 package com.oracle.graal.nodes.extended; |
24 | 24 |
25 import java.util.*; | 25 import java.util.*; |
26 | 26 |
27 import com.oracle.graal.api.meta.*; | 27 import com.oracle.graal.api.meta.*; |
28 import com.oracle.graal.compiler.common.*; | |
29 import com.oracle.graal.compiler.common.type.*; | 28 import com.oracle.graal.compiler.common.type.*; |
30 import com.oracle.graal.graph.*; | 29 import com.oracle.graal.graph.*; |
31 import com.oracle.graal.nodeinfo.*; | 30 import com.oracle.graal.nodeinfo.*; |
32 import com.oracle.graal.nodes.*; | 31 import com.oracle.graal.nodes.*; |
32 import com.oracle.jvmci.common.*; | |
33 | 33 |
34 /** | 34 /** |
35 * The {@code SwitchNode} class is the base of both lookup and table switches. | 35 * The {@code SwitchNode} class is the base of both lookup and table switches. |
36 */ | 36 */ |
37 @NodeInfo | 37 @NodeInfo |
153 * | 153 * |
154 * @return the default successor | 154 * @return the default successor |
155 */ | 155 */ |
156 public AbstractBeginNode defaultSuccessor() { | 156 public AbstractBeginNode defaultSuccessor() { |
157 if (defaultSuccessorIndex() == -1) { | 157 if (defaultSuccessorIndex() == -1) { |
158 throw new GraalInternalError("unexpected"); | 158 throw new JVMCIError("unexpected"); |
159 } | 159 } |
160 return successors.get(defaultSuccessorIndex()); | 160 return successors.get(defaultSuccessorIndex()); |
161 } | 161 } |
162 | 162 |
163 @Override | 163 @Override |