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

Side by Side Diff: src/arm64/code-stubs-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_CODE_STUBS_ARM64_H_ 5 #ifndef V8_ARM64_CODE_STUBS_ARM64_H_
6 #define V8_ARM64_CODE_STUBS_ARM64_H_ 6 #define V8_ARM64_CODE_STUBS_ARM64_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 // Compares two flat ASCII strings and returns result in x0. 17 // Compares two flat one-byte strings and returns result in x0.
18 static void GenerateCompareFlatAsciiStrings( 18 static void GenerateCompareFlatOneByteStrings(
19 MacroAssembler* masm, Register left, Register right, Register scratch1, 19 MacroAssembler* masm, Register left, Register right, Register scratch1,
20 Register scratch2, Register scratch3, Register scratch4); 20 Register scratch2, Register scratch3, Register scratch4);
21 21
22 // Compare two flat ASCII strings for equality and returns result in x0. 22 // Compare two flat one-byte strings for equality and returns result in x0.
23 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, Register left, 23 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm,
24 Register right, Register scratch1, 24 Register left, Register right,
25 Register scratch2, 25 Register scratch1,
26 Register scratch3); 26 Register scratch2,
27 Register scratch3);
27 28
28 private: 29 private:
29 static void GenerateAsciiCharsCompareLoop(MacroAssembler* masm, Register left, 30 static void GenerateOneByteCharsCompareLoop(
30 Register right, Register length, 31 MacroAssembler* masm, Register left, Register right, Register length,
31 Register scratch1, 32 Register scratch1, Register scratch2, Label* chars_not_equal);
32 Register scratch2,
33 Label* chars_not_equal);
34 33
35 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); 34 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper);
36 }; 35 };
37 36
38 37
39 class StoreRegistersStateStub: public PlatformCodeStub { 38 class StoreRegistersStateStub: public PlatformCodeStub {
40 public: 39 public:
41 explicit StoreRegistersStateStub(Isolate* isolate) 40 explicit StoreRegistersStateStub(Isolate* isolate)
42 : PlatformCodeStub(isolate) {} 41 : PlatformCodeStub(isolate) {}
43 42
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } 372 LookupMode mode() const { return LookupModeBits::decode(minor_key_); }
374 373
375 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 374 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
376 375
377 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); 376 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub);
378 }; 377 };
379 378
380 } } // namespace v8::internal 379 } } // namespace v8::internal
381 380
382 #endif // V8_ARM64_CODE_STUBS_ARM64_H_ 381 #endif // V8_ARM64_CODE_STUBS_ARM64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698