comparison src/cpu/sparc/vm/methodHandles_sparc.cpp @ 3905:c26de9aef2ed

7071307: MethodHandle bimorphic inlining should consider the frequency Reviewed-by: twisti, roland, kvn, iveresov
author never
date Fri, 02 Sep 2011 20:58:21 -0700
parents a19c671188cb
children 44ce519bc3d1
comparison
equal deleted inserted replaced
3902:11a4af030e4b 3905:c26de9aef2ed
1259 __ verify_oop(G3_method_handle); 1259 __ verify_oop(G3_method_handle);
1260 __ jump_to_method_handle_entry(G3_method_handle, O1_scratch); 1260 __ jump_to_method_handle_entry(G3_method_handle, O1_scratch);
1261 } 1261 }
1262 } 1262 }
1263 break; 1263 break;
1264
1265 case _adapter_opt_profiling:
1266 if (java_lang_invoke_CountingMethodHandle::vmcount_offset_in_bytes() != 0) {
1267 Address G3_mh_vmcount(G3_method_handle, java_lang_invoke_CountingMethodHandle::vmcount_offset_in_bytes());
1268 __ ld(G3_mh_vmcount, O1_scratch);
1269 __ add(O1_scratch, 1, O1_scratch);
1270 __ st(O1_scratch, G3_mh_vmcount);
1271 }
1272 // fall through
1264 1273
1265 case _adapter_retype_only: 1274 case _adapter_retype_only:
1266 case _adapter_retype_raw: 1275 case _adapter_retype_raw:
1267 // Immediately jump to the next MH layer: 1276 // Immediately jump to the next MH layer:
1268 __ load_heap_oop(G3_mh_vmtarget, G3_method_handle); 1277 __ load_heap_oop(G3_mh_vmtarget, G3_method_handle);