@@ -1355,25 +1355,15 @@ void InterpreterMacroAssembler::update_mdp_for_ret(Register return_bci) {
13551355}
13561356
13571357
1358- void InterpreterMacroAssembler::profile_taken_branch (Register mdp,
1359- Register bumped_count) {
1358+ void InterpreterMacroAssembler::profile_taken_branch (Register mdp) {
13601359 if (ProfileInterpreter) {
13611360 Label profile_continue;
13621361
13631362 // If no method data exists, go to profile_continue.
1364- // Otherwise, assign to mdp
13651363 test_method_data_pointer (mdp, profile_continue);
13661364
13671365 // We are taking a branch. Increment the taken count.
1368- // We inline increment_mdp_data_at to return bumped_count in a register
1369- // increment_mdp_data_at(mdp, in_bytes(JumpData::taken_offset()));
1370- Address data (mdp, in_bytes (JumpData::taken_offset ()));
1371- movptr (bumped_count, data);
1372- assert (DataLayout::counter_increment == 1 ,
1373- " flow-free idiom only works with 1" );
1374- addptr (bumped_count, DataLayout::counter_increment);
1375- sbbptr (bumped_count, 0 );
1376- movptr (data, bumped_count); // Store back out
1366+ increment_mdp_data_at (mdp, in_bytes (JumpData::taken_offset ()));
13771367
13781368 // The method data pointer needs to be updated to reflect the new target.
13791369 update_mdp_by_offset (mdp, in_bytes (JumpData::displacement_offset ()));
@@ -1389,7 +1379,7 @@ void InterpreterMacroAssembler::profile_not_taken_branch(Register mdp) {
13891379 // If no method data exists, go to profile_continue.
13901380 test_method_data_pointer (mdp, profile_continue);
13911381
1392- // We are taking a branch. Increment the not taken count.
1382+ // We are not taking a branch. Increment the not taken count.
13931383 increment_mdp_data_at (mdp, in_bytes (BranchData::not_taken_offset ()));
13941384
13951385 // The method data pointer needs to be updated to correspond to
0 commit comments