3048
3049 // Already unknown: Nothing to do anymore.
3050 __ z_tmll(tmp2, TypeEntries::type_unknown);
3051 __ z_brc(Assembler::bcondAllOne, next);
3052 __ z_oill(tmp2, TypeEntries::type_unknown);
3053 __ z_bru(do_update);
3054 }
3055 }
3056
3057 __ bind(init_klass);
3058 // Combine klass and null_seen bit (only used if (tmp & type_mask)==0).
3059 __ z_ogr(tmp2, tmp1);
3060
3061 __ bind(do_update);
3062 __ z_stg(tmp2, mdo_addr);
3063
3064 __ bind(next);
3065 }
3066 }
3067
3068 void LIR_Assembler::emit_updatecrc32(LIR_OpUpdateCRC32* op) {
3069 assert(op->crc()->is_single_cpu(), "crc must be register");
3070 assert(op->val()->is_single_cpu(), "byte value must be register");
3071 assert(op->result_opr()->is_single_cpu(), "result must be register");
3072 Register crc = op->crc()->as_register();
3073 Register val = op->val()->as_register();
3074 Register res = op->result_opr()->as_register();
3075
3076 assert_different_registers(val, crc, res);
3077
3078 __ load_const_optimized(res, StubRoutines::crc_table_addr());
3079 __ kernel_crc32_singleByteReg(crc, val, res, true);
3080 __ z_lgfr(res, crc);
3081 }
3082
3083 #undef __
|
3048
3049 // Already unknown: Nothing to do anymore.
3050 __ z_tmll(tmp2, TypeEntries::type_unknown);
3051 __ z_brc(Assembler::bcondAllOne, next);
3052 __ z_oill(tmp2, TypeEntries::type_unknown);
3053 __ z_bru(do_update);
3054 }
3055 }
3056
3057 __ bind(init_klass);
3058 // Combine klass and null_seen bit (only used if (tmp & type_mask)==0).
3059 __ z_ogr(tmp2, tmp1);
3060
3061 __ bind(do_update);
3062 __ z_stg(tmp2, mdo_addr);
3063
3064 __ bind(next);
3065 }
3066 }
3067
3068 void LIR_Assembler::emit_profile_inline_type(LIR_OpProfileInlineType* op) {
3069 Unimplemented();
3070 }
3071
3072 void LIR_Assembler::emit_updatecrc32(LIR_OpUpdateCRC32* op) {
3073 assert(op->crc()->is_single_cpu(), "crc must be register");
3074 assert(op->val()->is_single_cpu(), "byte value must be register");
3075 assert(op->result_opr()->is_single_cpu(), "result must be register");
3076 Register crc = op->crc()->as_register();
3077 Register val = op->val()->as_register();
3078 Register res = op->result_opr()->as_register();
3079
3080 assert_different_registers(val, crc, res);
3081
3082 __ load_const_optimized(res, StubRoutines::crc_table_addr());
3083 __ kernel_crc32_singleByteReg(crc, val, res, true);
3084 __ z_lgfr(res, crc);
3085 }
3086
3087 #undef __
|