comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotField.java @ 1465:2c754f3a2722

Inlining of static final field values. Java mirror instead of VmID. Support for PrintMetrics option.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Thu, 18 Nov 2010 17:27:43 +0100
parents 9e5e83ca2259
children 79d04223b8a5
comparison
equal deleted inserted replaced
1463:7bc14f75a077 1465:2c754f3a2722
35 35
36 private final RiType holder; 36 private final RiType holder;
37 private final String name; 37 private final String name;
38 private final RiType type; 38 private final RiType type;
39 private final int offset; 39 private final int offset;
40 private CiConstant constant;
40 41
41 public HotSpotField(RiType holder, String name, RiType type, int offset) { 42 public HotSpotField(RiType holder, String name, RiType type, int offset) {
42 this.holder = holder; 43 this.holder = holder;
43 this.name = name; 44 this.name = name;
44 this.type = type; 45 this.type = type;
51 return 0; 52 return 0;
52 } 53 }
53 54
54 @Override 55 @Override
55 public CiConstant constantValue(Object object) { 56 public CiConstant constantValue(Object object) {
56 // TODO Auto-generated method stub 57 if (object == null) {
58 // Constant part only valid for static fields.
59 return constant;
60 }
57 return null; 61 return null;
58 } 62 }
59 63
60 @Override 64 @Override
61 public RiType holder() { 65 public RiType holder() {