1555 } |
1555 } |
1556 } |
1556 } |
1557 |
1557 |
1558 void LIR_Assembler::emit_alloc_obj(LIR_OpAllocObj* op) { |
1558 void LIR_Assembler::emit_alloc_obj(LIR_OpAllocObj* op) { |
1559 if (op->init_check()) { |
1559 if (op->init_check()) { |
1560 __ cmpl(Address(op->klass()->as_register(), |
1560 __ cmpb(Address(op->klass()->as_register(), |
1561 instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc)), |
1561 instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc)), |
1562 instanceKlass::fully_initialized); |
1562 instanceKlass::fully_initialized); |
1563 add_debug_info_for_null_check_here(op->stub()->info()); |
1563 add_debug_info_for_null_check_here(op->stub()->info()); |
1564 __ jcc(Assembler::notEqual, *op->stub()->entry()); |
1564 __ jcc(Assembler::notEqual, *op->stub()->entry()); |
1565 } |
1565 } |