comparison src/share/vm/oops/fieldInfo.hpp @ 5223:edb5ab0f3fe5

8001107: @Stable annotation for constant folding of lazily evaluated variables Reviewed-by: rbackman, twisti, kvn Contributed-by: john.r.rose@oracle.com, vladimir.x.ivanov@oracle.com
author vlivanov
date Tue, 10 Sep 2013 14:51:48 -0700
parents be4d5c6c1f79
children de6a9e811145
comparison
equal deleted inserted replaced
4:c8c9869c3033 5:dd26bd9fb5d4
238 238
239 bool is_internal() const { 239 bool is_internal() const {
240 return (access_flags() & JVM_ACC_FIELD_INTERNAL) != 0; 240 return (access_flags() & JVM_ACC_FIELD_INTERNAL) != 0;
241 } 241 }
242 242
243 bool is_stable() const {
244 return (access_flags() & JVM_ACC_FIELD_STABLE) != 0;
245 }
246 void set_stable(bool z) {
247 if (z) _shorts[access_flags_offset] |= JVM_ACC_FIELD_STABLE;
248 else _shorts[access_flags_offset] &= ~JVM_ACC_FIELD_STABLE;
249 }
250
243 Symbol* lookup_symbol(int symbol_index) const { 251 Symbol* lookup_symbol(int symbol_index) const {
244 assert(is_internal(), "only internal fields"); 252 assert(is_internal(), "only internal fields");
245 return vmSymbols::symbol_at((vmSymbols::SID)symbol_index); 253 return vmSymbols::symbol_at((vmSymbols::SID)symbol_index);
246 } 254 }
247 }; 255 };