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

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

Issue 559913002: Rename ascii to one-byte where applicable. (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
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_X64_CODE_STUBS_X64_H_ 5 #ifndef V8_X64_CODE_STUBS_X64_H_
6 #define V8_X64_CODE_STUBS_X64_H_ 6 #define V8_X64_CODE_STUBS_X64_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
11 11
12 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 12 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code);
13 13
14 14
15 class StringHelper : public AllStatic { 15 class StringHelper : public AllStatic {
16 public: 16 public:
17 // Generate code for copying characters using the rep movs instruction. 17 // Generate code for copying characters using the rep movs instruction.
18 // Copies rcx characters from rsi to rdi. Copying of overlapping regions is 18 // Copies rcx characters from rsi to rdi. Copying of overlapping regions is
19 // not supported. 19 // not supported.
20 static void GenerateCopyCharacters(MacroAssembler* masm, 20 static void GenerateCopyCharacters(MacroAssembler* masm,
21 Register dest, 21 Register dest,
22 Register src, 22 Register src,
23 Register count, 23 Register count,
24 String::Encoding encoding); 24 String::Encoding encoding);
25 25
26 // Compares two flat ASCII strings and returns result in rax. 26 // Compares two flat one-byte strings and returns result in rax.
27 static void GenerateCompareFlatAsciiStrings( 27 static void GenerateCompareFlatOneByteStrings(
28 MacroAssembler* masm, Register left, Register right, Register scratch1, 28 MacroAssembler* masm, Register left, Register right, Register scratch1,
29 Register scratch2, Register scratch3, Register scratch4); 29 Register scratch2, Register scratch3, Register scratch4);
30 30
31 // Compares two flat ASCII strings for equality and returns result in rax. 31 // Compares two flat one-byte strings for equality and returns result in rax.
32 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, 32 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm,
33 Register left, 33 Register left, Register right,
34 Register right, 34 Register scratch1,
35 Register scratch1, 35 Register scratch2);
36 Register scratch2);
37 36
38 private: 37 private:
39 static void GenerateAsciiCharsCompareLoop( 38 static void GenerateOneByteCharsCompareLoop(
40 MacroAssembler* masm, 39 MacroAssembler* masm, Register left, Register right, Register length,
41 Register left, 40 Register scratch, Label* chars_not_equal,
42 Register right,
43 Register length,
44 Register scratch,
45 Label* chars_not_equal,
46 Label::Distance near_jump = Label::kFar); 41 Label::Distance near_jump = Label::kFar);
47 42
48 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); 43 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper);
49 }; 44 };
50 45
51 46
52 class NameDictionaryLookupStub: public PlatformCodeStub { 47 class NameDictionaryLookupStub: public PlatformCodeStub {
53 public: 48 public:
54 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; 49 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP };
55 50
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 Label slow_; 353 Label slow_;
359 RegisterAllocation regs_; 354 RegisterAllocation regs_;
360 355
361 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); 356 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub);
362 }; 357 };
363 358
364 359
365 } } // namespace v8::internal 360 } } // namespace v8::internal
366 361
367 #endif // V8_X64_CODE_STUBS_X64_H_ 362 #endif // V8_X64_CODE_STUBS_X64_H_
OLDNEW
« src/jsregexp.cc ('K') | « src/vector.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698