Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp @ 4739:52b5d32fbfaf
7117052: instanceKlass::_init_state can be u1 type
Summary: Change instanceKlass::_init_state field to u1 type.
Reviewed-by: bdelsart, coleenp, dholmes, phh, never
Contributed-by: Jiangli Zhou <jiangli.zhou@oracle.com>
author | coleenp |
---|---|
date | Tue, 06 Dec 2011 18:28:51 -0500 |
parents | eba044a722a4 |
children | 2685ea97b89f |
comparison
equal
deleted
inserted
replaced
4738:da4dd142ea01 | 4739:52b5d32fbfaf |
---|---|
2453 op->tmp2()->as_register() == G3 && | 2453 op->tmp2()->as_register() == G3 && |
2454 op->tmp3()->as_register() == G4 && | 2454 op->tmp3()->as_register() == G4 && |
2455 op->obj()->as_register() == O0 && | 2455 op->obj()->as_register() == O0 && |
2456 op->klass()->as_register() == G5, "must be"); | 2456 op->klass()->as_register() == G5, "must be"); |
2457 if (op->init_check()) { | 2457 if (op->init_check()) { |
2458 __ ld(op->klass()->as_register(), | 2458 __ ldub(op->klass()->as_register(), |
2459 instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc), | 2459 instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc), |
2460 op->tmp1()->as_register()); | 2460 op->tmp1()->as_register()); |
2461 add_debug_info_for_null_check_here(op->stub()->info()); | 2461 add_debug_info_for_null_check_here(op->stub()->info()); |
2462 __ cmp(op->tmp1()->as_register(), instanceKlass::fully_initialized); | 2462 __ cmp(op->tmp1()->as_register(), instanceKlass::fully_initialized); |
2463 __ br(Assembler::notEqual, false, Assembler::pn, *op->stub()->entry()); | 2463 __ br(Assembler::notEqual, false, Assembler::pn, *op->stub()->entry()); |