Mercurial > hg > graal-compiler
comparison src/cpu/sparc/vm/c1_MacroAssembler_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 | 1d1603768966 d86923d96dca |
comparison
equal
deleted
inserted
replaced
2125:7246a374a9f2 | 2127:5577848f5923 |
---|---|
168 int con_size_in_bytes, // object size in bytes if known at compile time | 168 int con_size_in_bytes, // object size in bytes if known at compile time |
169 Register t1, // temp register, must be global register for incr_allocated_bytes | 169 Register t1, // temp register, must be global register for incr_allocated_bytes |
170 Register t2, // temp register | 170 Register t2, // temp register |
171 Label& slow_case // continuation point if fast allocation fails | 171 Label& slow_case // continuation point if fast allocation fails |
172 ) { | 172 ) { |
173 RegisterOrConstant size_in_bytes = var_size_in_bytes->is_valid() | |
174 ? RegisterOrConstant(var_size_in_bytes) : RegisterOrConstant(con_size_in_bytes); | |
173 if (UseTLAB) { | 175 if (UseTLAB) { |
174 tlab_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, slow_case); | 176 tlab_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, slow_case); |
175 } else { | 177 } else { |
176 eden_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, t2, slow_case); | 178 eden_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, t2, slow_case); |
177 incr_allocated_bytes(var_size_in_bytes, con_size_in_bytes, t1); | 179 incr_allocated_bytes(size_in_bytes, t1, t2); |
178 } | 180 } |
179 } | 181 } |
180 | 182 |
181 | 183 |
182 void C1_MacroAssembler::initialize_header(Register obj, Register klass, Register len, Register t1, Register t2) { | 184 void C1_MacroAssembler::initialize_header(Register obj, Register klass, Register len, Register t1, Register t2) { |