1.1 --- a/src/cpu/x86/vm/x86_32.ad Sat Jan 07 10:39:23 2012 -0800 1.2 +++ b/src/cpu/x86/vm/x86_32.ad Sat Jan 07 13:26:43 2012 -0800 1.3 @@ -13435,20 +13435,20 @@ 1.4 // inlined locking and unlocking 1.5 1.6 1.7 -instruct cmpFastLock( eFlagsReg cr, eRegP object, eRegP box, eAXRegI tmp, eRegP scr) %{ 1.8 +instruct cmpFastLock( eFlagsReg cr, eRegP object, eBXRegP box, eAXRegI tmp, eRegP scr) %{ 1.9 match( Set cr (FastLock object box) ); 1.10 - effect( TEMP tmp, TEMP scr ); 1.11 + effect( TEMP tmp, TEMP scr, USE_KILL box ); 1.12 ins_cost(300); 1.13 - format %{ "FASTLOCK $object, $box KILLS $tmp,$scr" %} 1.14 + format %{ "FASTLOCK $object,$box\t! kills $box,$tmp,$scr" %} 1.15 ins_encode( Fast_Lock(object,box,tmp,scr) ); 1.16 ins_pipe( pipe_slow ); 1.17 %} 1.18 1.19 instruct cmpFastUnlock( eFlagsReg cr, eRegP object, eAXRegP box, eRegP tmp ) %{ 1.20 match( Set cr (FastUnlock object box) ); 1.21 - effect( TEMP tmp ); 1.22 + effect( TEMP tmp, USE_KILL box ); 1.23 ins_cost(300); 1.24 - format %{ "FASTUNLOCK $object, $box, $tmp" %} 1.25 + format %{ "FASTUNLOCK $object,$box\t! kills $box,$tmp" %} 1.26 ins_encode( Fast_Unlock(object,box,tmp) ); 1.27 ins_pipe( pipe_slow ); 1.28 %}