Mercurial > hg > graal-jvmci-8
view c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotField.java @ 1417:2c41834aa270
Small adaptations
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Wed, 23 Jun 2010 17:20:40 +0200 |
parents | 1b41af477605 |
children | 44efca8a02d6 |
line wrap: on
line source
package com.sun.hotspot.c1x; import com.sun.cri.ci.CiConstant; import com.sun.cri.ci.CiKind; import com.sun.cri.ri.RiField; import com.sun.cri.ri.RiType; public class HotSpotField implements RiField { private final RiType holder; private final Object nameSymbol; private final RiType type; private final int offset; public HotSpotField(RiType holder, Object nameSymbol, RiType type, int offset) { this.holder = holder; this.nameSymbol = nameSymbol; this.type = type; this.offset = offset; } @Override public int accessFlags() { // TODO Auto-generated method stub return 0; } @Override public CiConstant constantValue(Object object) { // TODO Auto-generated method stub return null; } @Override public RiType holder() { return holder; } @Override public boolean isConstant() { // TODO Auto-generated method stub return false; } @Override public boolean isResolved() { return offset != -1; } @Override public CiKind kind() { return type().kind(); } @Override public String name() { return VMEntries.RiSignature_symbolToString(nameSymbol); } @Override public RiType type() { return type; } }