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

Side by Side Diff: src/ia32/code-stubs-ia32.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/arm/code-stubs-arm.cc ('k') | src/ia32/code-stubs-ia32.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_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/macro-assembler.h" 8 #include "src/macro-assembler.h"
9 #include "src/ic-inl.h" 9 #include "src/ic-inl.h"
10 10
(...skipping 22 matching lines...) Expand all
33 Major MajorKey() { return StoreBufferOverflow; } 33 Major MajorKey() { return StoreBufferOverflow; }
34 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } 34 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
35 }; 35 };
36 36
37 37
38 class StringHelper : public AllStatic { 38 class StringHelper : public AllStatic {
39 public: 39 public:
40 // Generate code for copying characters using the rep movs instruction. 40 // Generate code for copying characters using the rep movs instruction.
41 // Copies ecx characters from esi to edi. Copying of overlapping regions is 41 // Copies ecx characters from esi to edi. Copying of overlapping regions is
42 // not supported. 42 // not supported.
43 static void GenerateCopyCharactersREP(MacroAssembler* masm, 43 static void GenerateCopyCharacters(MacroAssembler* masm,
44 Register dest, // Must be edi. 44 Register dest, // Must be edi.
45 Register src, // Must be esi. 45 Register src, // Must be esi.
46 Register count, // Must be ecx. 46 Register count, // Must be ecx.
47 Register scratch, // Neither of above. 47 Register scratch, // Neither of above.
48 bool ascii); 48 String::Encoding encoding);
49 49
50 // Generate string hash. 50 // Generate string hash.
51 static void GenerateHashInit(MacroAssembler* masm, 51 static void GenerateHashInit(MacroAssembler* masm,
52 Register hash, 52 Register hash,
53 Register character, 53 Register character,
54 Register scratch); 54 Register scratch);
55 static void GenerateHashAddCharacter(MacroAssembler* masm, 55 static void GenerateHashAddCharacter(MacroAssembler* masm,
56 Register hash, 56 Register hash,
57 Register character, 57 Register character,
58 Register scratch); 58 Register scratch);
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 Register address_; 430 Register address_;
431 RememberedSetAction remembered_set_action_; 431 RememberedSetAction remembered_set_action_;
432 SaveFPRegsMode save_fp_regs_mode_; 432 SaveFPRegsMode save_fp_regs_mode_;
433 RegisterAllocation regs_; 433 RegisterAllocation regs_;
434 }; 434 };
435 435
436 436
437 } } // namespace v8::internal 437 } } // namespace v8::internal
438 438
439 #endif // V8_IA32_CODE_STUBS_IA32_H_ 439 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698