comparison src/share/vm/classfile/classFileParser.hpp @ 2416:38fea01eb669

6817525: turn on method handle functionality by default for JSR 292 Summary: After appropriate testing, we need to turn on EnableMethodHandles and EnableInvokeDynamic by default. Reviewed-by: never, kvn, jrose, phh
author twisti
date Thu, 31 Mar 2011 02:31:57 -0700
parents c7f3d0b4570f
children e6b1331a51d2
comparison
equal deleted inserted replaced
2415:09f96c3ff1ad 2416:38fea01eb669
229 bool verify_unqualified_name(char* name, unsigned int length, int type); 229 bool verify_unqualified_name(char* name, unsigned int length, int type);
230 char* skip_over_field_name(char* name, bool slash_ok, unsigned int length); 230 char* skip_over_field_name(char* name, bool slash_ok, unsigned int length);
231 char* skip_over_field_signature(char* signature, bool void_ok, unsigned int length, TRAPS); 231 char* skip_over_field_signature(char* signature, bool void_ok, unsigned int length, TRAPS);
232 232
233 bool is_anonymous() { 233 bool is_anonymous() {
234 assert(AnonymousClasses || _host_klass.is_null(), ""); 234 assert(EnableInvokeDynamic || _host_klass.is_null(), "");
235 return _host_klass.not_null(); 235 return _host_klass.not_null();
236 } 236 }
237 bool has_cp_patch_at(int index) { 237 bool has_cp_patch_at(int index) {
238 assert(AnonymousClasses, ""); 238 assert(EnableInvokeDynamic, "");
239 assert(index >= 0, "oob"); 239 assert(index >= 0, "oob");
240 return (_cp_patches != NULL 240 return (_cp_patches != NULL
241 && index < _cp_patches->length() 241 && index < _cp_patches->length()
242 && _cp_patches->adr_at(index)->not_null()); 242 && _cp_patches->adr_at(index)->not_null());
243 } 243 }
256 // Wrapper for constantTag.is_klass_[or_]reference. 256 // Wrapper for constantTag.is_klass_[or_]reference.
257 // In older versions of the VM, klassOops cannot sneak into early phases of 257 // In older versions of the VM, klassOops cannot sneak into early phases of
258 // constant pool construction, but in later versions they can. 258 // constant pool construction, but in later versions they can.
259 // %%% Let's phase out the old is_klass_reference. 259 // %%% Let's phase out the old is_klass_reference.
260 bool is_klass_reference(constantPoolHandle cp, int index) { 260 bool is_klass_reference(constantPoolHandle cp, int index) {
261 return ((LinkWellKnownClasses || AnonymousClasses) 261 return ((LinkWellKnownClasses || EnableInvokeDynamic)
262 ? cp->tag_at(index).is_klass_or_reference() 262 ? cp->tag_at(index).is_klass_or_reference()
263 : cp->tag_at(index).is_klass_reference()); 263 : cp->tag_at(index).is_klass_reference());
264 } 264 }
265 265
266 public: 266 public: