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

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

Issue 544613002: Remove dead code for inline string hashing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/code-stubs.h" 8 #include "src/code-stubs.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 13
14 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 14 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code);
15 15
16 16
17 class StringHelper : public AllStatic { 17 class StringHelper : public AllStatic {
18 public: 18 public:
19 // Generate code for copying a large number of characters. This function 19 // Generate code for copying a large number of characters. This function
20 // is allowed to spend extra time setting up conditions to make copying 20 // is allowed to spend extra time setting up conditions to make copying
21 // faster. Copying of overlapping regions is not supported. 21 // faster. Copying of overlapping regions is not supported.
22 // Dest register ends at the position after the last character written. 22 // Dest register ends at the position after the last character written.
23 static void GenerateCopyCharacters(MacroAssembler* masm, 23 static void GenerateCopyCharacters(MacroAssembler* masm,
24 Register dest, 24 Register dest,
25 Register src, 25 Register src,
26 Register count, 26 Register count,
27 Register scratch, 27 Register scratch,
28 String::Encoding encoding); 28 String::Encoding encoding);
29 29
30
31 // Generate string hash.
32 static void GenerateHashInit(MacroAssembler* masm,
33 Register hash,
34 Register character);
35
36 static void GenerateHashAddCharacter(MacroAssembler* masm,
37 Register hash,
38 Register character);
39
40 static void GenerateHashGetHash(MacroAssembler* masm,
41 Register hash);
42
43 // Compares two flat ASCII strings and returns result in r0. 30 // Compares two flat ASCII strings and returns result in r0.
44 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, 31 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm,
45 Register left, 32 Register left,
46 Register right, 33 Register right,
47 Register scratch1, 34 Register scratch1,
48 Register scratch2, 35 Register scratch2,
49 Register scratch3, 36 Register scratch3,
50 Register scratch4); 37 Register scratch4);
51 38
52 // Compares two flat ASCII strings for equality and returns result in r0. 39 // Compares two flat ASCII strings for equality and returns result in r0.
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } 357 LookupMode mode() const { return LookupModeBits::decode(minor_key_); }
371 358
372 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 359 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
373 360
374 DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub); 361 DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub);
375 }; 362 };
376 363
377 } } // namespace v8::internal 364 } } // namespace v8::internal
378 365
379 #endif // V8_ARM_CODE_STUBS_ARM_H_ 366 #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