Mercurial > hg > truffle
view c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotField.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 | 6223633ce7dd |
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; } }