Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/x64/code-stubs-x64.h

Issue 326943002: Simplify string copy in SubStringStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698