src/cpu/x86/vm/c1_LIRAssembler_x86.cpp

changeset 3368
52b5d32fbfaf
parent 3156
f08d439fab8c
child 3400
22cee0ee8927
equal deleted inserted replaced
3367:da4dd142ea01 3368:52b5d32fbfaf
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 }

mercurial