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

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

Issue 326353002: X87: Simplify string copy in SubStringStub. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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 | « no previous file | src/x87/code-stubs-x87.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_X87_CODE_STUBS_X87_H_ 5 #ifndef V8_X87_CODE_STUBS_X87_H_
6 #define V8_X87_CODE_STUBS_X87_H_ 6 #define V8_X87_CODE_STUBS_X87_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 20 matching lines...) Expand all
31 Major MajorKey() { return StoreBufferOverflow; } 31 Major MajorKey() { return StoreBufferOverflow; }
32 int MinorKey() { return 0; } 32 int MinorKey() { return 0; }
33 }; 33 };
34 34
35 35
36 class StringHelper : public AllStatic { 36 class StringHelper : public AllStatic {
37 public: 37 public:
38 // Generate code for copying characters using the rep movs instruction. 38 // Generate code for copying characters using the rep movs instruction.
39 // Copies ecx characters from esi to edi. Copying of overlapping regions is 39 // Copies ecx characters from esi to edi. Copying of overlapping regions is
40 // not supported. 40 // not supported.
41 static void GenerateCopyCharactersREP(MacroAssembler* masm, 41 static void GenerateCopyCharacters(MacroAssembler* masm,
42 Register dest, // Must be edi. 42 Register dest,
43 Register src, // Must be esi. 43 Register src,
44 Register count, // Must be ecx. 44 Register count,
45 Register scratch, // Neither of above. 45 Register scratch,
46 bool ascii); 46 String::Encoding encoding);
47 47
48 // Generate string hash. 48 // Generate string hash.
49 static void GenerateHashInit(MacroAssembler* masm, 49 static void GenerateHashInit(MacroAssembler* masm,
50 Register hash, 50 Register hash,
51 Register character, 51 Register character,
52 Register scratch); 52 Register scratch);
53 static void GenerateHashAddCharacter(MacroAssembler* masm, 53 static void GenerateHashAddCharacter(MacroAssembler* masm,
54 Register hash, 54 Register hash,
55 Register character, 55 Register character,
56 Register scratch); 56 Register scratch);
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 Register value_; 404 Register value_;
405 Register address_; 405 Register address_;
406 RememberedSetAction remembered_set_action_; 406 RememberedSetAction remembered_set_action_;
407 RegisterAllocation regs_; 407 RegisterAllocation regs_;
408 }; 408 };
409 409
410 410
411 } } // namespace v8::internal 411 } } // namespace v8::internal
412 412
413 #endif // V8_X87_CODE_STUBS_X87_H_ 413 #endif // V8_X87_CODE_STUBS_X87_H_
OLDNEW
« no previous file with comments | « no previous file | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698