Mercurial > hg > truffle
comparison src/cpu/sparc/vm/templateTable_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 | 856ecff79cf7 |
comparison
equal
deleted
inserted
replaced
2125:7246a374a9f2 | 2127:5577848f5923 |
---|---|
3445 __ cmp(RoldTopValue, RnewTopValue); | 3445 __ cmp(RoldTopValue, RnewTopValue); |
3446 __ brx(Assembler::notEqual, false, Assembler::pn, retry); | 3446 __ brx(Assembler::notEqual, false, Assembler::pn, retry); |
3447 __ delayed()->nop(); | 3447 __ delayed()->nop(); |
3448 | 3448 |
3449 // bump total bytes allocated by this thread | 3449 // bump total bytes allocated by this thread |
3450 __ incr_allocated_bytes(Roffset, 0, G1_scratch); | 3450 // RoldTopValue and RtopAddr are dead, so can use G1 and G3 |
3451 __ incr_allocated_bytes(Roffset, G1_scratch, G3_scratch); | |
3451 } | 3452 } |
3452 | 3453 |
3453 if (UseTLAB || Universe::heap()->supports_inline_contig_alloc()) { | 3454 if (UseTLAB || Universe::heap()->supports_inline_contig_alloc()) { |
3454 // clear object fields | 3455 // clear object fields |
3455 __ bind(initialize_object); | 3456 __ bind(initialize_object); |