equal
deleted
inserted
replaced
70 // NULL: no implementor. |
70 // NULL: no implementor. |
71 // A ciInstanceKlass that's not itself: one implementor. |
71 // A ciInstanceKlass that's not itself: one implementor. |
72 // Itsef: more than one implementors. |
72 // Itsef: more than one implementors. |
73 ciInstanceKlass* _implementor; |
73 ciInstanceKlass* _implementor; |
74 |
74 |
75 bool compute_injected_fields(); |
75 void compute_injected_fields(); |
76 void compute_injected_fields_helper(); |
76 bool compute_injected_fields_helper(); |
77 |
77 |
78 protected: |
78 protected: |
79 ciInstanceKlass(KlassHandle h_k); |
79 ciInstanceKlass(KlassHandle h_k); |
80 ciInstanceKlass(ciSymbol* name, jobject loader, jobject protection_domain); |
80 ciInstanceKlass(ciSymbol* name, jobject loader, jobject protection_domain); |
81 |
81 |
191 return _nonstatic_fields->length(); |
191 return _nonstatic_fields->length(); |
192 } |
192 } |
193 |
193 |
194 bool has_injected_fields() { |
194 bool has_injected_fields() { |
195 if (_has_injected_fields == -1) { |
195 if (_has_injected_fields == -1) { |
196 return compute_injected_fields(); |
196 compute_injected_fields(); |
197 } |
197 } |
198 return _has_injected_fields > 0 ? true : false; |
198 return _has_injected_fields > 0 ? true : false; |
199 } |
199 } |
200 |
200 |
201 // nth nonstatic field (presented by ascending address) |
201 // nth nonstatic field (presented by ascending address) |