comparison src/cpu/sparc/vm/c1_Runtime1_sparc.cpp @ 2127:5577848f5923

7011463: Sparc MacroAssembler::incr_allocated_bytes() needs a RegisterOrConstant argument Summary: Replaced incr_allocated_bytes() formals var_size_in_bytes and con_size_in_bytes with a single RegisterOrConstant formal. Reviewed-by: twisti, jcoomes
author phh
date Tue, 11 Jan 2011 17:33:21 -0500
parents b1a2afa37ec4
children 85330eaa15ee e4fee0bdaa85
comparison
equal deleted inserted replaced
2125:7246a374a9f2 2127:5577848f5923
459 459
460 __ bind(try_eden); 460 __ bind(try_eden);
461 // get the instance size 461 // get the instance size
462 __ ld(G5_klass, klassOopDesc::header_size() * HeapWordSize + Klass::layout_helper_offset_in_bytes(), G1_obj_size); 462 __ ld(G5_klass, klassOopDesc::header_size() * HeapWordSize + Klass::layout_helper_offset_in_bytes(), G1_obj_size);
463 __ eden_allocate(O0_obj, G1_obj_size, 0, G3_t1, G4_t2, slow_path); 463 __ eden_allocate(O0_obj, G1_obj_size, 0, G3_t1, G4_t2, slow_path);
464 __ incr_allocated_bytes(G1_obj_size, 0, G3_t1); 464 __ incr_allocated_bytes(G1_obj_size, G3_t1, G4_t2);
465 465
466 __ initialize_object(O0_obj, G5_klass, G1_obj_size, 0, G3_t1, G4_t2); 466 __ initialize_object(O0_obj, G5_klass, G1_obj_size, 0, G3_t1, G4_t2);
467 __ verify_oop(O0_obj); 467 __ verify_oop(O0_obj);
468 __ mov(O0, I0); 468 __ mov(O0, I0);
469 __ ret(); 469 __ ret();
575 __ add(G1_arr_size, G3_t1, G1_arr_size); 575 __ add(G1_arr_size, G3_t1, G1_arr_size);
576 __ add(G1_arr_size, MinObjAlignmentInBytesMask, G1_arr_size); 576 __ add(G1_arr_size, MinObjAlignmentInBytesMask, G1_arr_size);
577 __ and3(G1_arr_size, ~MinObjAlignmentInBytesMask, G1_arr_size); 577 __ and3(G1_arr_size, ~MinObjAlignmentInBytesMask, G1_arr_size);
578 578
579 __ eden_allocate(O0_obj, G1_arr_size, 0, G3_t1, O1_t2, slow_path); // preserves G1_arr_size 579 __ eden_allocate(O0_obj, G1_arr_size, 0, G3_t1, O1_t2, slow_path); // preserves G1_arr_size
580 __ incr_allocated_bytes(G1_arr_size, 0, G3_t1); 580 __ incr_allocated_bytes(G1_arr_size, G3_t1, O1_t2);
581 581
582 __ initialize_header(O0_obj, G5_klass, G4_length, G3_t1, O1_t2); 582 __ initialize_header(O0_obj, G5_klass, G4_length, G3_t1, O1_t2);
583 __ ldub(klass_lh, G3_t1, klass_lh_header_size_offset); 583 __ ldub(klass_lh, G3_t1, klass_lh_header_size_offset);
584 __ sub(G1_arr_size, G3_t1, O1_t2); // body length 584 __ sub(G1_arr_size, G3_t1, O1_t2); // body length
585 __ add(O0_obj, G3_t1, G3_t1); // body start 585 __ add(O0_obj, G3_t1, G3_t1); // body start