comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiConstant.java @ 5506:56860d3f9f39

More refactorings and renamings in preparation of ci/ri split.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Jun 2012 18:12:01 +0200
parents 438ab53efdd0
children
comparison
equal deleted inserted replaced
5505:28af6dff047f 5506:56860d3f9f39
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.max.cri.ri; 23 package com.oracle.max.cri.ri;
24 24
25 import com.oracle.max.cri.ci.*;
26
27 /** 25 /**
28 * Represents a constant (boxed) value, such as an integer, floating point number, or object reference, 26 * Represents a constant (boxed) value, such as an integer, floating point number, or object reference,
29 * within the compiler and across the compiler/runtime interface. Exports a set of {@code CiConstant} 27 * within the compiler and across the compiler/runtime interface. Exports a set of {@code CiConstant}
30 * instances that represent frequently used constant values, such as {@link #ZERO}. 28 * instances that represent frequently used constant values, such as {@link #ZERO}.
31 */ 29 */
32 public final class RiConstant extends CiValue { 30 public final class RiConstant extends RiValue {
33 private static final long serialVersionUID = -6355452536852663986L; 31 private static final long serialVersionUID = -6355452536852663986L;
34 32
35 private static final RiConstant[] INT_CONSTANT_CACHE = new RiConstant[100]; 33 private static final RiConstant[] INT_CONSTANT_CACHE = new RiConstant[100];
36 static { 34 static {
37 for (int i = 0; i < INT_CONSTANT_CACHE.length; ++i) { 35 for (int i = 0; i < INT_CONSTANT_CACHE.length; ++i) {