comparison 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
comparison
equal deleted inserted replaced
1419:7bf6a77b9c5a 1420:44efca8a02d6
4 import com.sun.cri.ci.CiKind; 4 import com.sun.cri.ci.CiKind;
5 import com.sun.cri.ri.RiField; 5 import com.sun.cri.ri.RiField;
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
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 9
22 @Override 10 private final RiType holder;
23 public int accessFlags() { 11 private final Object nameSymbol;
24 // TODO Auto-generated method stub 12 private final RiType type;
25 return 0; 13 private final int offset;
26 }
27 14
28 @Override 15 public HotSpotField(RiType holder, Object nameSymbol, RiType type, int offset) {
29 public CiConstant constantValue(Object object) { 16 this.holder = holder;
30 // TODO Auto-generated method stub 17 this.nameSymbol = nameSymbol;
31 return null; 18 this.type = type;
32 } 19 this.offset = offset;
20 }
33 21
34 @Override 22 @Override
35 public RiType holder() { 23 public int accessFlags() {
36 return holder; 24 // TODO Auto-generated method stub
37 } 25 return 0;
26 }
38 27
39 @Override 28 @Override
40 public boolean isConstant() { 29 public CiConstant constantValue(Object object) {
41 // TODO Auto-generated method stub 30 // TODO Auto-generated method stub
42 return false; 31 return null;
43 } 32 }
44 33
45 @Override 34 @Override
46 public boolean isResolved() { 35 public RiType holder() {
47 return offset != -1; 36 return holder;
48 } 37 }
49 38
50 @Override 39 @Override
51 public CiKind kind() { 40 public boolean isConstant() {
52 return type().kind(); 41 // TODO Auto-generated method stub
53 } 42 return false;
43 }
54 44
55 @Override 45 @Override
56 public String name() { 46 public boolean isResolved() {
57 return VMEntries.RiSignature_symbolToString(nameSymbol); 47 return offset != -1;
58 } 48 }
59 49
60 @Override 50 @Override
61 public RiType type() { 51 public CiKind kind() {
62 return type; 52 return type().kind();
63 } 53 }
64 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 }
65 64
66 } 65 }