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

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: 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') | src/arm/code-stubs-arm.cc » ('J')
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 scratch1,
46 Register scratch2, 46 Register scratch2,
47 Register scratch3, 47 Register scratch3,
48 Register scratch4, 48 Register scratch4,
49 int flags); 49 String::Encoding encoding);
50 50
51 51
52 // Generate string hash. 52 // Generate string hash.
53 static void GenerateHashInit(MacroAssembler* masm, 53 static void GenerateHashInit(MacroAssembler* masm,
54 Register hash, 54 Register hash,
55 Register character); 55 Register character);
56 56
57 static void GenerateHashAddCharacter(MacroAssembler* masm, 57 static void GenerateHashAddCharacter(MacroAssembler* masm,
58 Register hash, 58 Register hash,
59 Register character); 59 Register character);
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 TargetAddressStorageMode storage_mode() { return storage_mode_; } 415 TargetAddressStorageMode storage_mode() { return storage_mode_; }
416 416
417 private: 417 private:
418 TargetAddressStorageMode storage_mode_; 418 TargetAddressStorageMode storage_mode_;
419 }; 419 };
420 420
421 421
422 } } // namespace v8::internal 422 } } // namespace v8::internal
423 423
424 #endif // V8_ARM_CODE_STUBS_ARM_H_ 424 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698