144 } 145 146 Symbol* generic_signature() const { 147 if (access_flags().field_has_generic_signature()) { 148 assert(_generic_signature_slot < _fields->length(), "out of bounds"); 149 int index = _fields->at(_generic_signature_slot); 150 return _constants->symbol_at(index); 151 } else { 152 return NULL; 153 } 154 } 155 156 int offset() const { 157 return field()->offset(); 158 } 159 160 int allocation_type() const { 161 return field()->allocation_type(); 162 } 163 164 void set_offset(int offset) { 165 field()->set_offset(offset); 166 } 167 168 bool is_offset_set() const { 169 return field()->is_offset_set(); 170 } 171 172 bool is_contended() const { 173 return field()->is_contended(); 174 } 175 176 int contended_group() const { 177 return field()->contended_group(); 178 } 179 180 // bridge to a heavier API: 181 fieldDescriptor& field_descriptor() const { 182 fieldDescriptor& field = const_cast<fieldDescriptor&>(_fd_buf); 183 field.reinitialize(field_holder(), _index); | 144 } 145 146 Symbol* generic_signature() const { 147 if (access_flags().field_has_generic_signature()) { 148 assert(_generic_signature_slot < _fields->length(), "out of bounds"); 149 int index = _fields->at(_generic_signature_slot); 150 return _constants->symbol_at(index); 151 } else { 152 return NULL; 153 } 154 } 155 156 int offset() const { 157 return field()->offset(); 158 } 159 160 int allocation_type() const { 161 return field()->allocation_type(); 162 } 163 164 void coerce_allocation_type(int from, int type) { 165 return field()->coerce_allocation_type(from, type); 166 } 167 168 void set_offset(int offset) { 169 field()->set_offset(offset); 170 } 171 172 bool is_offset_set() const { 173 return field()->is_offset_set(); 174 } 175 176 bool is_contended() const { 177 return field()->is_contended(); 178 } 179 180 int contended_group() const { 181 return field()->contended_group(); 182 } 183 184 // bridge to a heavier API: 185 fieldDescriptor& field_descriptor() const { 186 fieldDescriptor& field = const_cast<fieldDescriptor&>(_fd_buf); 187 field.reinitialize(field_holder(), _index); |