comparison graal/com.oracle.graal.loop/src/com/oracle/graal/loop/DerivedOffsetInductionVariable.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 ef52cebd4030
children
comparison
equal deleted inserted replaced
21542:543957c1c6a6 21543:93c50cefb9e8
22 */ 22 */
23 package com.oracle.graal.loop; 23 package com.oracle.graal.loop;
24 24
25 import static com.oracle.graal.loop.MathUtil.*; 25 import static com.oracle.graal.loop.MathUtil.*;
26 26
27 import com.oracle.graal.compiler.common.*;
28 import com.oracle.graal.compiler.common.type.*; 27 import com.oracle.graal.compiler.common.type.*;
29 import com.oracle.graal.nodes.*; 28 import com.oracle.graal.nodes.*;
30 import com.oracle.graal.nodes.calc.*; 29 import com.oracle.graal.nodes.calc.*;
30 import com.oracle.jvmci.common.*;
31 31
32 public class DerivedOffsetInductionVariable extends DerivedInductionVariable { 32 public class DerivedOffsetInductionVariable extends DerivedInductionVariable {
33 33
34 private final ValueNode offset; 34 private final ValueNode offset;
35 private final BinaryArithmeticNode<?> value; 35 private final BinaryArithmeticNode<?> value;
120 } else { 120 } else {
121 assert base.valueNode() == value.getY(); 121 assert base.valueNode() == value.getY();
122 return o - b; 122 return o - b;
123 } 123 }
124 } 124 }
125 throw GraalInternalError.shouldNotReachHere(); 125 throw JVMCIError.shouldNotReachHere();
126 } 126 }
127 127
128 private ValueNode op(ValueNode b, ValueNode o) { 128 private ValueNode op(ValueNode b, ValueNode o) {
129 if (value instanceof AddNode) { 129 if (value instanceof AddNode) {
130 return add(graph(), b, o); 130 return add(graph(), b, o);
135 } else { 135 } else {
136 assert base.valueNode() == value.getY(); 136 assert base.valueNode() == value.getY();
137 return sub(graph(), o, b); 137 return sub(graph(), o, b);
138 } 138 }
139 } 139 }
140 throw GraalInternalError.shouldNotReachHere(); 140 throw JVMCIError.shouldNotReachHere();
141 } 141 }
142 142
143 @Override 143 @Override
144 public void deleteUnusedNodes() { 144 public void deleteUnusedNodes() {
145 } 145 }