comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypePrimitive.java @ 1423:760213a60e8b

* rewrite of the code installation * partial support for safepoints * macro-based CiTargetMethod interface * code stub support
author Lukas Stadler <lukas.stadler@oracle.com>
date Mon, 16 Aug 2010 18:59:36 -0700
parents 6223633ce7dd
children abc670a709dc
comparison
equal deleted inserted replaced
1422:3483ec571caf 1423:760213a60e8b
1 /*
2 * Copyright (c) 2010 Sun Microsystems, Inc. All rights reserved.
3 *
4 * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is
5 * described in this document. In particular, and without limitation, these intellectual property rights may include one
6 * or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent
7 * applications in the U.S. and in other countries.
8 *
9 * U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard
10 * license agreement and applicable provisions of the FAR and its supplements.
11 *
12 * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or registered
13 * trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and
14 * are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries.
15 *
16 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd.
17 */
1 package com.sun.hotspot.c1x; 18 package com.sun.hotspot.c1x;
2 19
3 import com.sun.cri.ci.CiConstant; 20 import com.sun.cri.ci.*;
4 import com.sun.cri.ci.CiKind; 21 import com.sun.cri.ri.*;
5 import com.sun.cri.ri.RiMethod;
6 import com.sun.cri.ri.RiType;
7 22
8 public class HotSpotTypePrimitive implements RiType { 23 /**
24 * Implementation of RiType for primitive HotSpot types.
25 *
26 * @author Thomas Wuerthinger, Lukas Stadler
27 */
28 public class HotSpotTypePrimitive implements HotSpotType {
9 29
10 private CiKind kind; 30 private CiKind kind;
11 31
12 public HotSpotTypePrimitive(CiKind kind) { 32 public HotSpotTypePrimitive(CiKind kind) {
13 this.kind = kind; 33 this.kind = kind;
108 // TODO Auto-generated method stub 128 // TODO Auto-generated method stub
109 return false; 129 return false;
110 } 130 }
111 131
112 @Override 132 @Override
113 public Class< ? > javaClass() { 133 public Class<?> javaClass() {
114 return kind.toJavaClass(); 134 return kind.toJavaClass();
115 } 135 }
116 136
117 @Override 137 @Override
118 public CiKind kind() { 138 public CiKind kind() {
127 @Override 147 @Override
128 public RiMethod resolveMethodImpl(RiMethod method) { 148 public RiMethod resolveMethodImpl(RiMethod method) {
129 return null; 149 return null;
130 } 150 }
131 151
152 @Override
153 public String toString() {
154 return "HotSpotTypePrimitive<" + kind + ">";
155 }
156
132 } 157 }