Mercurial > hg > truffle
diff src/cpu/x86/vm/macroAssembler_x86.hpp @ 7474:00af3a3a8df4
8005522: use fast-string instructions on x86 for zeroing
Summary: use 'rep stosb' instead of 'rep stosq' when fast-string operations are available.
Reviewed-by: twisti, roland
author | kvn |
---|---|
date | Thu, 03 Jan 2013 15:09:55 -0800 |
parents | 18d56ca3e901 |
children | 038dd2875b94 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/macroAssembler_x86.hpp Sun Dec 23 17:08:22 2012 +0100 +++ b/src/cpu/x86/vm/macroAssembler_x86.hpp Thu Jan 03 15:09:55 2013 -0800 @@ -1096,6 +1096,9 @@ // C2 compiled method's prolog code. void verified_entry(int framesize, bool stack_bang, bool fp_mode_24b); + // clear memory of size 'cnt' qwords, starting at 'base'. + void clear_mem(Register base, Register cnt, Register rtmp); + // IndexOf strings. // Small strings are loaded through stack if they cross page boundary. void string_indexof(Register str1, Register str2,