comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotField.java @ 1416:1b41af477605

Added HotSpotVM project Java source files.
author Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
date Wed, 23 Jun 2010 16:36:58 +0200
parents
children 44efca8a02d6
comparison
equal deleted inserted replaced
1415:712c7ff1afc1 1416:1b41af477605
1 package com.sun.hotspot.c1x;
2
3 import com.sun.cri.ci.CiConstant;
4 import com.sun.cri.ci.CiKind;
5 import com.sun.cri.ri.RiField;
6 import com.sun.cri.ri.RiType;
7
8 public class HotSpotField implements RiField {
9
10 private final RiType holder;
11 private final Object nameSymbol;
12 private final RiType type;
13 private final int offset;
14
15 public HotSpotField(RiType holder, Object nameSymbol, RiType type, int offset) {
16 this.holder = holder;
17 this.nameSymbol = nameSymbol;
18 this.type = type;
19 this.offset = offset;
20 }
21
22 @Override
23 public int accessFlags() {
24 // TODO Auto-generated method stub
25 return 0;
26 }
27
28 @Override
29 public CiConstant constantValue(Object object) {
30 // TODO Auto-generated method stub
31 return null;
32 }
33
34 @Override
35 public RiType holder() {
36 return holder;
37 }
38
39 @Override
40 public boolean isConstant() {
41 // TODO Auto-generated method stub
42 return false;
43 }
44
45 @Override
46 public boolean isResolved() {
47 return offset != -1;
48 }
49
50 @Override
51 public CiKind kind() {
52 return type().kind();
53 }
54
55 @Override
56 public String name() {
57 return VMEntries.RiSignature_symbolToString(nameSymbol);
58 }
59
60 @Override
61 public RiType type() {
62 return type;
63 }
64
65
66 }