| 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 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| 11 | 11 |
| 12 void ArrayNativeCode(MacroAssembler* masm, | 12 void ArrayNativeCode(MacroAssembler* masm, |
| 13 bool construct_call, | 13 bool construct_call, |
| 14 Label* call_generic_code); | 14 Label* call_generic_code); |
| 15 | 15 |
| 16 | 16 |
| 17 class StringHelper : public AllStatic { | 17 class StringHelper : public AllStatic { |
| 18 public: | 18 public: |
| 19 // Generate code for copying characters using the rep movs instruction. | |
| 20 // Copies ecx characters from esi to edi. Copying of overlapping regions is | |
| 21 // not supported. | |
| 22 static void GenerateCopyCharacters(MacroAssembler* masm, | |
| 23 Register dest, | |
| 24 Register src, | |
| 25 Register count, | |
| 26 Register scratch, | |
| 27 String::Encoding encoding); | |
| 28 | |
| 29 // Compares two flat one byte strings and returns result in eax. | 19 // Compares two flat one byte strings and returns result in eax. |
| 30 static void GenerateCompareFlatOneByteStrings(MacroAssembler* masm, | 20 static void GenerateCompareFlatOneByteStrings(MacroAssembler* masm, |
| 31 Register left, Register right, | 21 Register left, Register right, |
| 32 Register scratch1, | 22 Register scratch1, |
| 33 Register scratch2, | 23 Register scratch2, |
| 34 Register scratch3); | 24 Register scratch3); |
| 35 | 25 |
| 36 // Compares two flat one byte strings for equality and returns result in eax. | 26 // Compares two flat one byte strings for equality and returns result in eax. |
| 37 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, | 27 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, |
| 38 Register left, Register right, | 28 Register left, Register right, |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 RegisterAllocation regs_; | 354 RegisterAllocation regs_; |
| 365 | 355 |
| 366 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); | 356 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); |
| 367 }; | 357 }; |
| 368 | 358 |
| 369 | 359 |
| 370 } // namespace internal | 360 } // namespace internal |
| 371 } // namespace v8 | 361 } // namespace v8 |
| 372 | 362 |
| 373 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 363 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
| OLD | NEW |