Mercurial > hg > truffle
comparison graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/match/MatchRuleRegistry.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 | c1e2fdb5fea3 |
children | b1530a6cce8c |
comparison
equal
deleted
inserted
replaced
21542:543957c1c6a6 | 21543:93c50cefb9e8 |
---|---|
25 import static com.oracle.graal.compiler.GraalDebugConfig.*; | 25 import static com.oracle.graal.compiler.GraalDebugConfig.*; |
26 | 26 |
27 import java.util.*; | 27 import java.util.*; |
28 import java.util.Map.Entry; | 28 import java.util.Map.Entry; |
29 | 29 |
30 import com.oracle.graal.compiler.common.*; | |
31 import com.oracle.graal.compiler.gen.*; | 30 import com.oracle.graal.compiler.gen.*; |
32 import com.oracle.graal.debug.*; | 31 import com.oracle.graal.debug.*; |
33 import com.oracle.graal.debug.Debug.Scope; | 32 import com.oracle.graal.debug.Debug.Scope; |
34 import com.oracle.graal.graph.*; | 33 import com.oracle.graal.graph.*; |
34 import com.oracle.jvmci.common.*; | |
35 import com.oracle.jvmci.runtime.*; | 35 import com.oracle.jvmci.runtime.*; |
36 | 36 |
37 public class MatchRuleRegistry { | 37 public class MatchRuleRegistry { |
38 | 38 |
39 /** | 39 /** |
53 if (names[i].equals(edges.getName(e))) { | 53 if (names[i].equals(edges.getName(e))) { |
54 result[i] = new Position(edges, e, Node.NOT_ITERABLE); | 54 result[i] = new Position(edges, e, Node.NOT_ITERABLE); |
55 } | 55 } |
56 } | 56 } |
57 if (result[i] == null) { | 57 if (result[i] == null) { |
58 throw new GraalInternalError("unknown field \"%s\" in class %s", names[i], nodeClass); | 58 throw new JVMCIError("unknown field \"%s\" in class %s", names[i], nodeClass); |
59 } | 59 } |
60 } | 60 } |
61 return result; | 61 return result; |
62 } | 62 } |
63 | 63 |