Mercurial > hg > truffle
diff src/cpu/x86/vm/macroAssembler_x86.hpp @ 14494:5292439ef895
8033805: Move Fast_Lock/Fast_Unlock code from .ad files to macroassembler
Summary: Consolidated C2 x86 locking code in one place in macroAssembler_x86.cpp.
Reviewed-by: roland
author | kvn |
---|---|
date | Mon, 24 Feb 2014 15:12:26 -0800 |
parents | d13d7aba8c12 |
children | 4ca6dc0799b6 606acabe7b5c |
line wrap: on
line diff
--- a/src/cpu/x86/vm/macroAssembler_x86.hpp Fri Feb 21 08:09:15 2014 -0800 +++ b/src/cpu/x86/vm/macroAssembler_x86.hpp Mon Feb 24 15:12:26 2014 -0800 @@ -651,7 +651,12 @@ Label& done, Label* slow_case = NULL, BiasedLockingCounters* counters = NULL); void biased_locking_exit (Register obj_reg, Register temp_reg, Label& done); - +#ifdef COMPILER2 + // Code used by cmpFastLock and cmpFastUnlock mach instructions in .ad file. + // See full desription in macroAssembler_x86.cpp. + void fast_lock(Register obj, Register box, Register tmp, Register scr, BiasedLockingCounters* counters); + void fast_unlock(Register obj, Register box, Register tmp); +#endif Condition negate_condition(Condition cond);