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

Side by Side Diff: src/ia32/code-stubs-ia32.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 | « src/arm64/code-stubs-arm64.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/code-stubs.h" 8 #include "src/code-stubs.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 10 matching lines...) Expand all
21 // Generate code for copying characters using the rep movs instruction. 21 // Generate code for copying characters using the rep movs instruction.
22 // Copies ecx characters from esi to edi. Copying of overlapping regions is 22 // Copies ecx characters from esi to edi. Copying of overlapping regions is
23 // not supported. 23 // not supported.
24 static void GenerateCopyCharacters(MacroAssembler* masm, 24 static void GenerateCopyCharacters(MacroAssembler* masm,
25 Register dest, 25 Register dest,
26 Register src, 26 Register src,
27 Register count, 27 Register count,
28 Register scratch, 28 Register scratch,
29 String::Encoding encoding); 29 String::Encoding encoding);
30 30
31 // Generate string hash.
32 static void GenerateHashInit(MacroAssembler* masm,
33 Register hash,
34 Register character,
35 Register scratch);
36
37 static void GenerateHashAddCharacter(MacroAssembler* masm,
38 Register hash,
39 Register character,
40 Register scratch);
41
42 static void GenerateHashGetHash(MacroAssembler* masm,
43 Register hash,
44 Register scratch);
45
46 // Compares two flat ASCII strings and returns result in eax. 31 // Compares two flat ASCII strings and returns result in eax.
47 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, 32 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm,
48 Register left, Register right, 33 Register left, Register right,
49 Register scratch1, 34 Register scratch1,
50 Register scratch2, 35 Register scratch2,
51 Register scratch3); 36 Register scratch3);
52 37
53 // Compares two flat ASCII strings for equality and returns result in eax. 38 // Compares two flat ASCII strings for equality and returns result in eax.
54 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, 39 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm,
55 Register left, 40 Register left,
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 386
402 RegisterAllocation regs_; 387 RegisterAllocation regs_;
403 388
404 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); 389 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub);
405 }; 390 };
406 391
407 392
408 } } // namespace v8::internal 393 } } // namespace v8::internal
409 394
410 #endif // V8_IA32_CODE_STUBS_IA32_H_ 395 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698