OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_CODE_STUBS_PPC_H_ | 5 #ifndef V8_PPC_CODE_STUBS_PPC_H_ |
6 #define V8_PPC_CODE_STUBS_PPC_H_ | 6 #define V8_PPC_CODE_STUBS_PPC_H_ |
7 | 7 |
8 #include "src/ppc/frames-ppc.h" | 8 #include "src/ppc/frames-ppc.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 | 13 |
14 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); | 14 void ArrayNativeCode(MacroAssembler* masm, 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 a large number of characters. This function | |
20 // is allowed to spend extra time setting up conditions to make copying | |
21 // faster. Copying of overlapping regions is not supported. | |
22 // Dest register ends at the position after the last character written. | |
23 static void GenerateCopyCharacters(MacroAssembler* masm, Register dest, | |
24 Register src, Register count, | |
25 Register scratch, | |
26 String::Encoding encoding); | |
27 | |
28 // Compares two flat one-byte strings and returns result in r0. | 19 // Compares two flat one-byte strings and returns result in r0. |
29 static void GenerateCompareFlatOneByteStrings(MacroAssembler* masm, | 20 static void GenerateCompareFlatOneByteStrings(MacroAssembler* masm, |
30 Register left, Register right, | 21 Register left, Register right, |
31 Register scratch1, | 22 Register scratch1, |
32 Register scratch2, | 23 Register scratch2, |
33 Register scratch3); | 24 Register scratch3); |
34 | 25 |
35 // Compares two flat one-byte strings for equality and returns result in r0. | 26 // Compares two flat one-byte strings for equality and returns result in r0. |
36 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, | 27 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, |
37 Register left, Register right, | 28 Register left, Register right, |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 310 |
320 class LookupModeBits : public BitField<LookupMode, 0, 1> {}; | 311 class LookupModeBits : public BitField<LookupMode, 0, 1> {}; |
321 | 312 |
322 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 313 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
323 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); | 314 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); |
324 }; | 315 }; |
325 } // namespace internal | 316 } // namespace internal |
326 } // namespace v8 | 317 } // namespace v8 |
327 | 318 |
328 #endif // V8_PPC_CODE_STUBS_PPC_H_ | 319 #endif // V8_PPC_CODE_STUBS_PPC_H_ |
OLD | NEW |