Mercurial > hg > graal-compiler
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeUnresolved.java @ 1420:44efca8a02d6
reformatting similar to other maxine projects (tabs, etc.)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Tue, 13 Jul 2010 11:47:55 -0700 |
parents | 1b41af477605 |
children | 760213a60e8b |
comparison
equal
deleted
inserted
replaced
1419:7bf6a77b9c5a | 1420:44efca8a02d6 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved. | 2 * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved. |
3 * | 3 * |
4 * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product | 4 * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is |
5 * that is described in this document. In particular, and without limitation, these intellectual property | 5 * described in this document. In particular, and without limitation, these intellectual property rights may include one |
6 * rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or | 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 * more additional patents or pending patent applications in the U.S. and in other countries. | 7 * applications in the U.S. and in other countries. |
8 * | 8 * |
9 * U.S. Government Rights - Commercial software. Government users are subject to the Sun | 9 * U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard |
10 * Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its | 10 * license agreement and applicable provisions of the FAR and its supplements. |
11 * supplements. | |
12 * | 11 * |
13 * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or | 12 * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or registered |
14 * registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks | 13 * trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and |
15 * are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the | 14 * are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. |
16 * U.S. and other countries. | |
17 * | 15 * |
18 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open | 16 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. |
19 * Company, Ltd. | |
20 */ | 17 */ |
21 package com.sun.hotspot.c1x; | 18 package com.sun.hotspot.c1x; |
22 | 19 |
23 import com.sun.cri.ci.*; | 20 import com.sun.cri.ci.*; |
24 import com.sun.cri.ri.*; | 21 import com.sun.cri.ri.*; |
36 * @param typeDescriptor the type's descriptor | 33 * @param typeDescriptor the type's descriptor |
37 * @param pool the constant pool containing the unresolved type reference | 34 * @param pool the constant pool containing the unresolved type reference |
38 * @param cpi the index in {@code constantPool} of the unresolved type reference | 35 * @param cpi the index in {@code constantPool} of the unresolved type reference |
39 */ | 36 */ |
40 public HotSpotTypeUnresolved(String name) { | 37 public HotSpotTypeUnresolved(String name) { |
41 this.name = name; | 38 this.name = name; |
42 } | 39 } |
43 | 40 |
44 public String name() { | 41 public String name() { |
45 return name; | 42 return name; |
46 } | 43 } |
47 | 44 |
48 public Class<?> javaClass() { | 45 public Class< ? > javaClass() { |
49 throw unresolved("javaClass"); | 46 throw unresolved("javaClass"); |
50 } | 47 } |
51 | 48 |
52 public boolean hasSubclass() { | 49 public boolean hasSubclass() { |
53 throw unresolved("hasSubclass()"); | 50 throw unresolved("hasSubclass()"); |
92 public boolean isInstance(Object obj) { | 89 public boolean isInstance(Object obj) { |
93 throw unresolved("isInstance()"); | 90 throw unresolved("isInstance()"); |
94 } | 91 } |
95 | 92 |
96 public RiType componentType() { | 93 public RiType componentType() { |
97 // TODO: Implement | 94 // TODO: Implement |
98 throw new UnsupportedOperationException(); | 95 throw new UnsupportedOperationException(); |
99 } | 96 } |
100 | 97 |
101 public RiType exactType() { | 98 public RiType exactType() { |
102 throw unresolved("exactType()"); | 99 throw unresolved("exactType()"); |
103 } | 100 } |
104 | 101 |
105 public RiType arrayOf() { | 102 public RiType arrayOf() { |
106 // TODO: Implement | 103 // TODO: Implement |
107 throw new UnsupportedOperationException(); | 104 throw new UnsupportedOperationException(); |
108 } | 105 } |
109 | 106 |
110 public RiMethod resolveMethodImpl(RiMethod method) { | 107 public RiMethod resolveMethodImpl(RiMethod method) { |
111 throw unresolved("resolveMethodImpl()"); | 108 throw unresolved("resolveMethodImpl()"); |
112 } | 109 } |
113 | 110 |
114 public CiKind kind() { | 111 public CiKind kind() { |
115 // TODO: Check if this is correct. | 112 // TODO: Check if this is correct. |
116 return CiKind.Object; | 113 return CiKind.Object; |
117 } | 114 } |
118 | 115 |
119 private CiUnresolvedException unresolved(String operation) { | 116 private CiUnresolvedException unresolved(String operation) { |
120 throw new CiUnresolvedException(operation + " not defined for unresolved class " + name); | 117 throw new CiUnresolvedException(operation + " not defined for unresolved class " + name); |
138 public CiConstant getEncoding(RiType.Representation r) { | 135 public CiConstant getEncoding(RiType.Representation r) { |
139 throw unresolved("getEncoding()"); | 136 throw unresolved("getEncoding()"); |
140 } | 137 } |
141 | 138 |
142 public CiKind getRepresentationKind(RiType.Representation r) { | 139 public CiKind getRepresentationKind(RiType.Representation r) { |
143 // TODO: Check if this is correct. | 140 // TODO: Check if this is correct. |
144 return CiKind.Object; | 141 return CiKind.Object; |
145 } | 142 } |
146 } | 143 } |