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

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

Issue 545093002: X87: Remove dead code for inline string hashing. (Closed) Base URL: https://github.com/v8/v8.git@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
« 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/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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 360
376 RegisterAllocation regs_; 361 RegisterAllocation regs_;
377 362
378 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); 363 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub);
379 }; 364 };
380 365
381 366
382 } } // namespace v8::internal 367 } } // namespace v8::internal
383 368
384 #endif // V8_X87_CODE_STUBS_X87_H_ 369 #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