equal
deleted
inserted
replaced
38 } |
38 } |
39 }); |
39 }); |
40 } |
40 } |
41 |
41 |
42 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { |
42 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { |
43 Type type = db.lookupType("CompiledICHolder"); |
43 Type type = db.lookupType("CompiledICHolder"); |
44 holderMethod = new MetadataField(type.getAddressField("_holder_method"), 0); |
44 holderMetadata = new MetadataField(type.getAddressField("_holder_metadata"), 0); |
45 holderKlass = new MetadataField(type.getAddressField("_holder_klass"), 0); |
45 holderKlass = new MetadataField(type.getAddressField("_holder_klass"), 0); |
46 headerSize = type.getSize(); |
46 headerSize = type.getSize(); |
47 } |
47 } |
48 |
48 |
49 public CompiledICHolder(Address addr) { |
49 public CompiledICHolder(Address addr) { |
50 super(addr); |
50 super(addr); |
51 } |
51 } |
53 public boolean isCompiledICHolder() { return true; } |
53 public boolean isCompiledICHolder() { return true; } |
54 |
54 |
55 private static long headerSize; |
55 private static long headerSize; |
56 |
56 |
57 // Fields |
57 // Fields |
58 private static MetadataField holderMethod; |
58 private static MetadataField holderMetadata; |
59 private static MetadataField holderKlass; |
59 private static MetadataField holderKlass; |
60 |
60 |
61 // Accessors for declared fields |
61 // Accessors for declared fields |
62 public Method getHolderMethod() { return (Method) holderMethod.getValue(this); } |
62 public Metadata getHolderMetadata() { return (Metadata) holderMetadata.getValue(this); } |
63 public Klass getHolderKlass() { return (Klass) holderKlass.getValue(this); } |
63 public Klass getHolderKlass() { return (Klass) holderKlass.getValue(this); } |
64 |
64 |
65 public void printValueOn(PrintStream tty) { |
65 public void printValueOn(PrintStream tty) { |
66 tty.print("CompiledICHolder"); |
66 tty.print("CompiledICHolder"); |
67 } |
67 } |
68 } |
68 } |