OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Generate code for copying characters using the rep movs instruction. | 170 // Generate code for copying characters using the rep movs instruction. |
171 // Copies ecx characters from esi to edi. Copying of overlapping regions is | 171 // Copies ecx characters from esi to edi. Copying of overlapping regions is |
172 // not supported. | 172 // not supported. |
173 static void GenerateCopyCharactersREP(MacroAssembler* masm, | 173 static void GenerateCopyCharactersREP(MacroAssembler* masm, |
174 Register dest, // Must be edi. | 174 Register dest, // Must be edi. |
175 Register src, // Must be esi. | 175 Register src, // Must be esi. |
176 Register count, // Must be ecx. | 176 Register count, // Must be ecx. |
177 Register scratch, // Neither of above. | 177 Register scratch, // Neither of above. |
178 bool ascii); | 178 bool ascii); |
179 | 179 |
180 // Probe the symbol table for a two character string. If the string | 180 // Probe the string table for a two character string. If the string |
181 // requires non-standard hashing a jump to the label not_probed is | 181 // requires non-standard hashing a jump to the label not_probed is |
182 // performed and registers c1 and c2 are preserved. In all other | 182 // performed and registers c1 and c2 are preserved. In all other |
183 // cases they are clobbered. If the string is not found by probing a | 183 // cases they are clobbered. If the string is not found by probing a |
184 // jump to the label not_found is performed. This jump does not | 184 // jump to the label not_found is performed. This jump does not |
185 // guarantee that the string is not in the symbol table. If the | 185 // guarantee that the string is not in the string table. If the |
186 // string is found the code falls through with the string in | 186 // string is found the code falls through with the string in |
187 // register eax. | 187 // register eax. |
188 static void GenerateTwoCharacterSymbolTableProbe(MacroAssembler* masm, | 188 static void GenerateTwoCharacterStringTableProbe(MacroAssembler* masm, |
189 Register c1, | 189 Register c1, |
190 Register c2, | 190 Register c2, |
191 Register scratch1, | 191 Register scratch1, |
192 Register scratch2, | 192 Register scratch2, |
193 Register scratch3, | 193 Register scratch3, |
194 Label* not_probed, | 194 Label* not_probed, |
195 Label* not_found); | 195 Label* not_found); |
196 | 196 |
197 // Generate string hash. | 197 // Generate string hash. |
198 static void GenerateHashInit(MacroAssembler* masm, | 198 static void GenerateHashInit(MacroAssembler* masm, |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 Register address_; | 637 Register address_; |
638 RememberedSetAction remembered_set_action_; | 638 RememberedSetAction remembered_set_action_; |
639 SaveFPRegsMode save_fp_regs_mode_; | 639 SaveFPRegsMode save_fp_regs_mode_; |
640 RegisterAllocation regs_; | 640 RegisterAllocation regs_; |
641 }; | 641 }; |
642 | 642 |
643 | 643 |
644 } } // namespace v8::internal | 644 } } // namespace v8::internal |
645 | 645 |
646 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 646 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
OLD | NEW |