232 \ |
232 \ |
233 template(annotations_name, "annotations") \ |
233 template(annotations_name, "annotations") \ |
234 template(parameter_annotations_name, "parameterAnnotations") \ |
234 template(parameter_annotations_name, "parameterAnnotations") \ |
235 template(annotation_default_name, "annotationDefault") \ |
235 template(annotation_default_name, "annotationDefault") \ |
236 template(sun_reflect_ConstantPool, "sun/reflect/ConstantPool") \ |
236 template(sun_reflect_ConstantPool, "sun/reflect/ConstantPool") \ |
237 template(constantPoolOop_name, "constantPoolOop") \ |
237 template(ConstantPool_name, "constantPoolOop") \ |
238 template(sun_reflect_UnsafeStaticFieldAccessorImpl, "sun/reflect/UnsafeStaticFieldAccessorImpl")\ |
238 template(sun_reflect_UnsafeStaticFieldAccessorImpl, "sun/reflect/UnsafeStaticFieldAccessorImpl")\ |
239 template(base_name, "base") \ |
239 template(base_name, "base") \ |
240 \ |
240 \ |
241 /* Support for JSR 292 & invokedynamic (JDK 1.7 and above) */ \ |
241 /* Support for JSR 292 & invokedynamic (JDK 1.7 and above) */ \ |
242 template(java_lang_invoke_CallSite, "java/lang/invoke/CallSite") \ |
242 template(java_lang_invoke_CallSite, "java/lang/invoke/CallSite") \ |
312 template(get_name, "get") \ |
312 template(get_name, "get") \ |
313 template(put_name, "put") \ |
313 template(put_name, "put") \ |
314 template(type_name, "type") \ |
314 template(type_name, "type") \ |
315 template(findNative_name, "findNative") \ |
315 template(findNative_name, "findNative") \ |
316 template(deadChild_name, "deadChild") \ |
316 template(deadChild_name, "deadChild") \ |
317 template(addClass_name, "addClass") \ |
|
318 template(getFromClass_name, "getFromClass") \ |
317 template(getFromClass_name, "getFromClass") \ |
319 template(dispatch_name, "dispatch") \ |
318 template(dispatch_name, "dispatch") \ |
320 template(getSystemClassLoader_name, "getSystemClassLoader") \ |
319 template(getSystemClassLoader_name, "getSystemClassLoader") \ |
321 template(fillInStackTrace_name, "fillInStackTrace") \ |
320 template(fillInStackTrace_name, "fillInStackTrace") \ |
322 template(fillInStackTrace0_name, "fillInStackTrace0") \ |
321 template(fillInStackTrace0_name, "fillInStackTrace0") \ |
357 template(target_name, "target") \ |
356 template(target_name, "target") \ |
358 template(toString_name, "toString") \ |
357 template(toString_name, "toString") \ |
359 template(values_name, "values") \ |
358 template(values_name, "values") \ |
360 template(receiver_name, "receiver") \ |
359 template(receiver_name, "receiver") \ |
361 template(vmtarget_name, "vmtarget") \ |
360 template(vmtarget_name, "vmtarget") \ |
|
361 template(next_target_name, "next_target") \ |
|
362 template(vmloader_name, "vmloader") \ |
362 template(vmindex_name, "vmindex") \ |
363 template(vmindex_name, "vmindex") \ |
363 template(vmcount_name, "vmcount") \ |
364 template(vmcount_name, "vmcount") \ |
364 template(vmentry_name, "vmentry") \ |
365 template(vmentry_name, "vmentry") \ |
365 template(flags_name, "flags") \ |
366 template(flags_name, "flags") \ |
366 template(rtype_name, "rtype") \ |
367 template(rtype_name, "rtype") \ |
371 template(klass_name, "klass") \ |
372 template(klass_name, "klass") \ |
372 template(resolved_constructor_name, "resolved_constructor") \ |
373 template(resolved_constructor_name, "resolved_constructor") \ |
373 template(array_klass_name, "array_klass") \ |
374 template(array_klass_name, "array_klass") \ |
374 template(oop_size_name, "oop_size") \ |
375 template(oop_size_name, "oop_size") \ |
375 template(static_oop_field_count_name, "static_oop_field_count") \ |
376 template(static_oop_field_count_name, "static_oop_field_count") \ |
|
377 template(loader_data_name, "loader_data") \ |
|
378 template(dependencies_name, "dependencies") \ |
376 \ |
379 \ |
377 /* non-intrinsic name/signature pairs: */ \ |
380 /* non-intrinsic name/signature pairs: */ \ |
378 template(register_method_name, "register") \ |
381 template(register_method_name, "register") \ |
379 do_alias(register_method_signature, object_void_signature) \ |
382 do_alias(register_method_signature, object_void_signature) \ |
380 \ |
383 \ |
1010 VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE) |
1013 VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE) |
1011 #undef VM_SYMBOL_DECLARE |
1014 #undef VM_SYMBOL_DECLARE |
1012 |
1015 |
1013 // Sharing support |
1016 // Sharing support |
1014 static void symbols_do(SymbolClosure* f); |
1017 static void symbols_do(SymbolClosure* f); |
1015 static void serialize(SerializeOopClosure* soc); |
1018 static void serialize(SerializeClosure* soc); |
1016 |
1019 |
1017 static Symbol* type_signature(BasicType t) { |
1020 static Symbol* type_signature(BasicType t) { |
1018 assert((uint)t < T_VOID+1, "range check"); |
1021 assert((uint)t < T_VOID+1, "range check"); |
1019 assert(_type_signatures[t] != NULL, "domain check"); |
1022 assert(_type_signatures[t] != NULL, "domain check"); |
1020 return _type_signatures[t]; |
1023 return _type_signatures[t]; |
1108 assert( name_for(id) == name, "correct id"); |
1111 assert( name_for(id) == name, "correct id"); |
1109 assert(signature_for(id) == sig, "correct id"); |
1112 assert(signature_for(id) == sig, "correct id"); |
1110 return id; |
1113 return id; |
1111 } |
1114 } |
1112 |
1115 |
1113 static void verify_method(ID actual_id, methodOop m) PRODUCT_RETURN; |
1116 static void verify_method(ID actual_id, Method* m) PRODUCT_RETURN; |
1114 |
1117 |
1115 // Find out the symbols behind an intrinsic: |
1118 // Find out the symbols behind an intrinsic: |
1116 static vmSymbols::SID class_for(ID id); |
1119 static vmSymbols::SID class_for(ID id); |
1117 static vmSymbols::SID name_for(ID id); |
1120 static vmSymbols::SID name_for(ID id); |
1118 static vmSymbols::SID signature_for(ID id); |
1121 static vmSymbols::SID signature_for(ID id); |
1119 static Flags flags_for(ID id); |
1122 static Flags flags_for(ID id); |
1120 |
1123 |
1121 static const char* short_name_as_C_string(ID id, char* buf, int size); |
1124 static const char* short_name_as_C_string(ID id, char* buf, int size); |
1122 |
1125 |
1123 // Access to intrinsic methods: |
1126 // Access to intrinsic methods: |
1124 static methodOop method_for(ID id); |
1127 static Method* method_for(ID id); |
1125 |
1128 |
1126 // Wrapper object methods: |
1129 // Wrapper object methods: |
1127 static ID for_boxing(BasicType type); |
1130 static ID for_boxing(BasicType type); |
1128 static ID for_unboxing(BasicType type); |
1131 static ID for_unboxing(BasicType type); |
1129 |
1132 |