Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
7473:d092d1b31229 | 7474:00af3a3a8df4 |
---|---|
1094 void movl2ptr(Register dst, Register src) { LP64_ONLY(movslq(dst, src)) NOT_LP64(if (dst != src) movl(dst, src)); } | 1094 void movl2ptr(Register dst, Register src) { LP64_ONLY(movslq(dst, src)) NOT_LP64(if (dst != src) movl(dst, src)); } |
1095 | 1095 |
1096 // C2 compiled method's prolog code. | 1096 // C2 compiled method's prolog code. |
1097 void verified_entry(int framesize, bool stack_bang, bool fp_mode_24b); | 1097 void verified_entry(int framesize, bool stack_bang, bool fp_mode_24b); |
1098 | 1098 |
1099 // clear memory of size 'cnt' qwords, starting at 'base'. | |
1100 void clear_mem(Register base, Register cnt, Register rtmp); | |
1101 | |
1099 // IndexOf strings. | 1102 // IndexOf strings. |
1100 // Small strings are loaded through stack if they cross page boundary. | 1103 // Small strings are loaded through stack if they cross page boundary. |
1101 void string_indexof(Register str1, Register str2, | 1104 void string_indexof(Register str1, Register str2, |
1102 Register cnt1, Register cnt2, | 1105 Register cnt1, Register cnt2, |
1103 int int_cnt2, Register result, | 1106 int int_cnt2, Register result, |