Mercurial > hg > truffle
view 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 |
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 String name; private final RiType type; private final int offset; public HotSpotField(RiType holder, String name, RiType type, int offset) { this.holder = holder; this.name = name; 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 name; } @Override public RiType type() { return type; } public int offset() { return offset; } }