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 #include "src/ic-inl.h" | 8 #include "src/ic-inl.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 class StringHelper : public AllStatic { | 34 class StringHelper : public AllStatic { |
35 public: | 35 public: |
36 // Generate code for copying characters using the rep movs instruction. | 36 // Generate code for copying characters using the rep movs instruction. |
37 // Copies rcx characters from rsi to rdi. Copying of overlapping regions is | 37 // Copies rcx characters from rsi to rdi. Copying of overlapping regions is |
38 // not supported. | 38 // not supported. |
39 static void GenerateCopyCharactersREP(MacroAssembler* masm, | 39 static void GenerateCopyCharactersREP(MacroAssembler* masm, |
40 Register dest, // Must be rdi. | 40 Register dest, // Must be rdi. |
41 Register src, // Must be rsi. | 41 Register src, // Must be rsi. |
42 Register count, // Must be rcx. | 42 Register count, // Must be rcx. |
43 bool ascii); | 43 String::Encoding encoding); |
44 | 44 |
45 | 45 |
46 // Generate string hash. | 46 // Generate string hash. |
47 static void GenerateHashInit(MacroAssembler* masm, | 47 static void GenerateHashInit(MacroAssembler* masm, |
48 Register hash, | 48 Register hash, |
49 Register character, | 49 Register character, |
50 Register scratch); | 50 Register scratch); |
51 static void GenerateHashAddCharacter(MacroAssembler* masm, | 51 static void GenerateHashAddCharacter(MacroAssembler* masm, |
52 Register hash, | 52 Register hash, |
53 Register character, | 53 Register character, |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 RememberedSetAction remembered_set_action_; | 413 RememberedSetAction remembered_set_action_; |
414 SaveFPRegsMode save_fp_regs_mode_; | 414 SaveFPRegsMode save_fp_regs_mode_; |
415 Label slow_; | 415 Label slow_; |
416 RegisterAllocation regs_; | 416 RegisterAllocation regs_; |
417 }; | 417 }; |
418 | 418 |
419 | 419 |
420 } } // namespace v8::internal | 420 } } // namespace v8::internal |
421 | 421 |
422 #endif // V8_X64_CODE_STUBS_X64_H_ | 422 #endif // V8_X64_CODE_STUBS_X64_H_ |
OLD | NEW |