< prev index next >

src/hotspot/cpu/s390/c1_LIRAssembler_s390.cpp

Print this page

3044 
3045         // Already unknown: Nothing to do anymore.
3046         __ z_tmll(tmp2, TypeEntries::type_unknown);
3047         __ z_brc(Assembler::bcondAllOne, next);
3048         __ z_oill(tmp2, TypeEntries::type_unknown);
3049         __ z_bru(do_update);
3050       }
3051     }
3052 
3053     __ bind(init_klass);
3054     // Combine klass and null_seen bit (only used if (tmp & type_mask)==0).
3055     __ z_ogr(tmp2, tmp1);
3056 
3057     __ bind(do_update);
3058     __ z_stg(tmp2, mdo_addr);
3059 
3060     __ bind(next);
3061   }
3062 }
3063 




3064 void LIR_Assembler::emit_updatecrc32(LIR_OpUpdateCRC32* op) {
3065   assert(op->crc()->is_single_cpu(), "crc must be register");
3066   assert(op->val()->is_single_cpu(), "byte value must be register");
3067   assert(op->result_opr()->is_single_cpu(), "result must be register");
3068   Register crc = op->crc()->as_register();
3069   Register val = op->val()->as_register();
3070   Register res = op->result_opr()->as_register();
3071 
3072   assert_different_registers(val, crc, res);
3073 
3074   __ load_const_optimized(res, StubRoutines::crc_table_addr());
3075   __ kernel_crc32_singleByteReg(crc, val, res, true);
3076   __ z_lgfr(res, crc);
3077 }
3078 
3079 #undef __

3044 
3045         // Already unknown: Nothing to do anymore.
3046         __ z_tmll(tmp2, TypeEntries::type_unknown);
3047         __ z_brc(Assembler::bcondAllOne, next);
3048         __ z_oill(tmp2, TypeEntries::type_unknown);
3049         __ z_bru(do_update);
3050       }
3051     }
3052 
3053     __ bind(init_klass);
3054     // Combine klass and null_seen bit (only used if (tmp & type_mask)==0).
3055     __ z_ogr(tmp2, tmp1);
3056 
3057     __ bind(do_update);
3058     __ z_stg(tmp2, mdo_addr);
3059 
3060     __ bind(next);
3061   }
3062 }
3063 
3064 void LIR_Assembler::emit_profile_inline_type(LIR_OpProfileInlineType* op) {
3065   Unimplemented();
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 __
< prev index next >