Mercurial > hg > graal-jvmci-8
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotField.java @ 1422:3483ec571caf
* using reflected objects instead of oops
* removed scratch from allocatable registers
* instanceof xir snippet
* arraylength xir snippet
* exceptionobject xir snippet
* VMEntries and VMExits as interfaces
* calls to VMEntries and VMExits are routet through logging proxies
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Mon, 02 Aug 2010 15:44:38 -0700 |
parents | 6223633ce7dd |
children | 760213a60e8b |
comparison
equal
deleted
inserted
replaced
1421:6223633ce7dd | 1422:3483ec571caf |
---|---|
6 import com.sun.cri.ri.RiType; | 6 import com.sun.cri.ri.RiType; |
7 | 7 |
8 public class HotSpotField implements RiField { | 8 public class HotSpotField implements RiField { |
9 | 9 |
10 private final RiType holder; | 10 private final RiType holder; |
11 private final Object nameSymbol; | 11 private final String name; |
12 private final RiType type; | 12 private final RiType type; |
13 private final int offset; | 13 private final int offset; |
14 | 14 |
15 public HotSpotField(RiType holder, Object nameSymbol, RiType type, int offset) { | 15 public HotSpotField(RiType holder, String name, RiType type, int offset) { |
16 this.holder = holder; | 16 this.holder = holder; |
17 this.nameSymbol = nameSymbol; | 17 this.name = name; |
18 this.type = type; | 18 this.type = type; |
19 this.offset = offset; | 19 this.offset = offset; |
20 } | 20 } |
21 | 21 |
22 @Override | 22 @Override |
52 return type().kind(); | 52 return type().kind(); |
53 } | 53 } |
54 | 54 |
55 @Override | 55 @Override |
56 public String name() { | 56 public String name() { |
57 return Compiler.getVMEntries().RiSignature_symbolToString(nameSymbol); | 57 return name; |
58 } | 58 } |
59 | 59 |
60 @Override | 60 @Override |
61 public RiType type() { | 61 public RiType type() { |
62 return type; | 62 return type; |