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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm/code-stubs-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM_CODE_STUBS_ARM_H_ 5 #ifndef V8_ARM_CODE_STUBS_ARM_H_
6 #define V8_ARM_CODE_STUBS_ARM_H_ 6 #define V8_ARM_CODE_STUBS_ARM_H_
7 7
8 #include "src/ic-inl.h" 8 #include "src/ic-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 20 matching lines...) Expand all
31 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } 31 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
32 }; 32 };
33 33
34 34
35 class StringHelper : public AllStatic { 35 class StringHelper : public AllStatic {
36 public: 36 public:
37 // Generate code for copying a large number of characters. This function 37 // Generate code for copying a large number of characters. This function
38 // is allowed to spend extra time setting up conditions to make copying 38 // is allowed to spend extra time setting up conditions to make copying
39 // faster. Copying of overlapping regions is not supported. 39 // faster. Copying of overlapping regions is not supported.
40 // Dest register ends at the position after the last character written. 40 // Dest register ends at the position after the last character written.
41 static void GenerateCopyCharactersLong(MacroAssembler* masm, 41 static void GenerateCopyCharacters(MacroAssembler* masm,
42 Register dest, 42 Register dest,
43 Register src, 43 Register src,
44 Register count, 44 Register count,
45 Register scratch1, 45 Register scratch,
46 Register scratch2, 46 String::Encoding encoding);
47 Register scratch3,
48 Register scratch4,
49 int flags);
50 47
51 48
52 // Generate string hash. 49 // Generate string hash.
53 static void GenerateHashInit(MacroAssembler* masm, 50 static void GenerateHashInit(MacroAssembler* masm,
54 Register hash, 51 Register hash,
55 Register character); 52 Register character);
56 53
57 static void GenerateHashAddCharacter(MacroAssembler* masm, 54 static void GenerateHashAddCharacter(MacroAssembler* masm,
58 Register hash, 55 Register hash,
59 Register character); 56 Register character);
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 TargetAddressStorageMode storage_mode() { return storage_mode_; } 412 TargetAddressStorageMode storage_mode() { return storage_mode_; }
416 413
417 private: 414 private:
418 TargetAddressStorageMode storage_mode_; 415 TargetAddressStorageMode storage_mode_;
419 }; 416 };
420 417
421 418
422 } } // namespace v8::internal 419 } } // namespace v8::internal
423 420
424 #endif // V8_ARM_CODE_STUBS_ARM_H_ 421 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698