| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_IA32_CODE_STUBS_IA32_H_ | 5 #ifndef V8_IA32_CODE_STUBS_IA32_H_ |
| 6 #define V8_IA32_CODE_STUBS_IA32_H_ | 6 #define V8_IA32_CODE_STUBS_IA32_H_ |
| 7 | 7 |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // Generate code for copying characters using the rep movs instruction. | 21 // Generate code for copying characters using the rep movs instruction. |
| 22 // Copies ecx characters from esi to edi. Copying of overlapping regions is | 22 // Copies ecx characters from esi to edi. Copying of overlapping regions is |
| 23 // not supported. | 23 // not supported. |
| 24 static void GenerateCopyCharacters(MacroAssembler* masm, | 24 static void GenerateCopyCharacters(MacroAssembler* masm, |
| 25 Register dest, | 25 Register dest, |
| 26 Register src, | 26 Register src, |
| 27 Register count, | 27 Register count, |
| 28 Register scratch, | 28 Register scratch, |
| 29 String::Encoding encoding); | 29 String::Encoding encoding); |
| 30 | 30 |
| 31 // Generate string hash. | |
| 32 static void GenerateHashInit(MacroAssembler* masm, | |
| 33 Register hash, | |
| 34 Register character, | |
| 35 Register scratch); | |
| 36 | |
| 37 static void GenerateHashAddCharacter(MacroAssembler* masm, | |
| 38 Register hash, | |
| 39 Register character, | |
| 40 Register scratch); | |
| 41 | |
| 42 static void GenerateHashGetHash(MacroAssembler* masm, | |
| 43 Register hash, | |
| 44 Register scratch); | |
| 45 | |
| 46 // Compares two flat ASCII strings and returns result in eax. | 31 // Compares two flat ASCII strings and returns result in eax. |
| 47 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, | 32 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
| 48 Register left, Register right, | 33 Register left, Register right, |
| 49 Register scratch1, | 34 Register scratch1, |
| 50 Register scratch2, | 35 Register scratch2, |
| 51 Register scratch3); | 36 Register scratch3); |
| 52 | 37 |
| 53 // Compares two flat ASCII strings for equality and returns result in eax. | 38 // Compares two flat ASCII strings for equality and returns result in eax. |
| 54 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, | 39 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, |
| 55 Register left, | 40 Register left, |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 386 |
| 402 RegisterAllocation regs_; | 387 RegisterAllocation regs_; |
| 403 | 388 |
| 404 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); | 389 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); |
| 405 }; | 390 }; |
| 406 | 391 |
| 407 | 392 |
| 408 } } // namespace v8::internal | 393 } } // namespace v8::internal |
| 409 | 394 |
| 410 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 395 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
| OLD | NEW |