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

Side by Side Diff: src/ia32/code-stubs-ia32.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_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 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
11 11
12 void ArrayNativeCode(MacroAssembler* masm, 12 void ArrayNativeCode(MacroAssembler* masm,
13 bool construct_call, 13 bool construct_call,
14 Label* call_generic_code); 14 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 characters using the rep movs instruction. 19 // Generate code for copying characters using the rep movs instruction.
20 // Copies ecx characters from esi to edi. Copying of overlapping regions is 20 // Copies ecx characters from esi to edi. Copying of overlapping regions is
21 // not supported. 21 // not supported.
22 static void GenerateCopyCharacters(MacroAssembler* masm, 22 static void GenerateCopyCharacters(MacroAssembler* masm,
23 Register dest, 23 Register dest,
24 Register src, 24 Register src,
25 Register count, 25 Register count,
26 Register scratch, 26 Register scratch,
27 String::Encoding encoding); 27 String::Encoding encoding);
28 28
29 // Compares two flat ASCII strings and returns result in eax. 29 // Compares two flat one byte strings and returns result in eax.
30 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, 30 static void GenerateCompareFlatOneByteStrings(MacroAssembler* masm,
31 Register left, Register right,
32 Register scratch1,
33 Register scratch2,
34 Register scratch3);
35
36 // Compares two flat one byte strings for equality and returns result in eax.
37 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm,
31 Register left, Register right, 38 Register left, Register right,
32 Register scratch1, 39 Register scratch1,
33 Register scratch2, 40 Register scratch2);
34 Register scratch3);
35
36 // Compares two flat ASCII strings for equality and returns result in eax.
37 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm,
38 Register left,
39 Register right,
40 Register scratch1,
41 Register scratch2);
42 41
43 private: 42 private:
44 static void GenerateAsciiCharsCompareLoop( 43 static void GenerateOneByteCharsCompareLoop(
45 MacroAssembler* masm, 44 MacroAssembler* masm, Register left, Register right, Register length,
46 Register left, 45 Register scratch, Label* chars_not_equal,
47 Register right,
48 Register length,
49 Register scratch,
50 Label* chars_not_equal,
51 Label::Distance chars_not_equal_near = Label::kFar); 46 Label::Distance chars_not_equal_near = Label::kFar);
52 47
53 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); 48 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper);
54 }; 49 };
55 50
56 51
57 class NameDictionaryLookupStub: public PlatformCodeStub { 52 class NameDictionaryLookupStub: public PlatformCodeStub {
58 public: 53 public:
59 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; 54 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP };
60 55
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 378
384 RegisterAllocation regs_; 379 RegisterAllocation regs_;
385 380
386 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); 381 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub);
387 }; 382 };
388 383
389 384
390 } } // namespace v8::internal 385 } } // namespace v8::internal
391 386
392 #endif // V8_IA32_CODE_STUBS_IA32_H_ 387 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« no previous file with comments | « src/i18n.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698