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