mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8240976: [JVMCI] MethodProfileWidth flag is broken
Remove JVMCI code which is not used Reviewed-by: thartmann, redestad
This commit is contained in:
parent
1a0995981c
commit
ec5bd02186
17 changed files with 2 additions and 206 deletions
|
@ -1621,38 +1621,10 @@ void InterpreterMacroAssembler::profile_virtual_call(Register receiver,
|
|||
bind(skip_receiver_profile);
|
||||
|
||||
// The method data pointer needs to be updated to reflect the new target.
|
||||
#if INCLUDE_JVMCI
|
||||
if (MethodProfileWidth == 0) {
|
||||
update_mdp_by_constant(mdp, in_bytes(VirtualCallData::virtual_call_data_size()));
|
||||
}
|
||||
#else // INCLUDE_JVMCI
|
||||
update_mdp_by_constant(mdp,
|
||||
in_bytes(VirtualCallData::
|
||||
virtual_call_data_size()));
|
||||
#endif // INCLUDE_JVMCI
|
||||
bind(profile_continue);
|
||||
}
|
||||
}
|
||||
|
||||
#if INCLUDE_JVMCI
|
||||
void InterpreterMacroAssembler::profile_called_method(Register method, Register mdp, Register reg2) {
|
||||
assert_different_registers(method, mdp, reg2);
|
||||
if (ProfileInterpreter && MethodProfileWidth > 0) {
|
||||
Label profile_continue;
|
||||
|
||||
// If no method data exists, go to profile_continue.
|
||||
test_method_data_pointer(mdp, profile_continue);
|
||||
|
||||
Label done;
|
||||
record_item_in_profile_helper(method, mdp, reg2, 0, done, MethodProfileWidth,
|
||||
&VirtualCallData::method_offset, &VirtualCallData::method_count_offset, in_bytes(VirtualCallData::nonprofiled_receiver_count_offset()));
|
||||
bind(done);
|
||||
|
||||
update_mdp_by_constant(mdp, in_bytes(VirtualCallData::virtual_call_data_size()));
|
||||
bind(profile_continue);
|
||||
}
|
||||
}
|
||||
#endif // INCLUDE_JVMCI
|
||||
|
||||
// This routine creates a state machine for updating the multi-row
|
||||
// type profile at a virtual call site (or other type-sensitive bytecode).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue