< prev index next >

src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp

Print this page

3183                ciTypeEntries::valid_ciklass(current_klass) != exact_klass, "inconsistent");
3184 
3185         // Already unknown. Nothing to do anymore.
3186         __ andi_(R0, tmp, TypeEntries::type_unknown);
3187         __ bne(CCR0, Lnext);
3188 
3189         // Different than before. Cannot keep accurate profile.
3190         __ ori(R0, tmp, TypeEntries::type_unknown);
3191       }
3192     }
3193 
3194     __ bind(Ldo_update);
3195     __ std(R0, index_or_disp(mdo_addr), mdo_addr->base()->as_pointer_register());
3196 
3197     __ bind(Lnext);
3198     if (klass_reg_used) { __ load_const_optimized(R29_TOC, MacroAssembler::global_toc(), R0); } // reinit
3199   }
3200   __ bind(Ldone);
3201 }
3202 



3203 
3204 void LIR_Assembler::emit_updatecrc32(LIR_OpUpdateCRC32* op) {
3205   assert(op->crc()->is_single_cpu(), "crc must be register");
3206   assert(op->val()->is_single_cpu(), "byte value must be register");
3207   assert(op->result_opr()->is_single_cpu(), "result must be register");
3208   Register crc = op->crc()->as_register();
3209   Register val = op->val()->as_register();
3210   Register res = op->result_opr()->as_register();
3211 
3212   assert_different_registers(val, crc, res);
3213 
3214   __ load_const_optimized(res, StubRoutines::crc_table_addr(), R0);
3215   __ kernel_crc32_singleByteReg(crc, val, res, true);
3216   __ mr(res, crc);
3217 }
3218 
3219 #undef __

3183                ciTypeEntries::valid_ciklass(current_klass) != exact_klass, "inconsistent");
3184 
3185         // Already unknown. Nothing to do anymore.
3186         __ andi_(R0, tmp, TypeEntries::type_unknown);
3187         __ bne(CCR0, Lnext);
3188 
3189         // Different than before. Cannot keep accurate profile.
3190         __ ori(R0, tmp, TypeEntries::type_unknown);
3191       }
3192     }
3193 
3194     __ bind(Ldo_update);
3195     __ std(R0, index_or_disp(mdo_addr), mdo_addr->base()->as_pointer_register());
3196 
3197     __ bind(Lnext);
3198     if (klass_reg_used) { __ load_const_optimized(R29_TOC, MacroAssembler::global_toc(), R0); } // reinit
3199   }
3200   __ bind(Ldone);
3201 }
3202 
3203 void LIR_Assembler::emit_profile_inline_type(LIR_OpProfileInlineType* op) {
3204   Unimplemented();
3205 }
3206 
3207 void LIR_Assembler::emit_updatecrc32(LIR_OpUpdateCRC32* op) {
3208   assert(op->crc()->is_single_cpu(), "crc must be register");
3209   assert(op->val()->is_single_cpu(), "byte value must be register");
3210   assert(op->result_opr()->is_single_cpu(), "result must be register");
3211   Register crc = op->crc()->as_register();
3212   Register val = op->val()->as_register();
3213   Register res = op->result_opr()->as_register();
3214 
3215   assert_different_registers(val, crc, res);
3216 
3217   __ load_const_optimized(res, StubRoutines::crc_table_addr(), R0);
3218   __ kernel_crc32_singleByteReg(crc, val, res, true);
3219   __ mr(res, crc);
3220 }
3221 
3222 #undef __
< prev index next >