OLD | NEW |
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_MIPS_CODE_STUBS_ARM_H_ | 5 #ifndef V8_MIPS_CODE_STUBS_ARM_H_ |
6 #define V8_MIPS_CODE_STUBS_ARM_H_ | 6 #define V8_MIPS_CODE_STUBS_ARM_H_ |
7 | 7 |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 | 9 |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // is allowed to spend extra time setting up conditions to make copying | 21 // is allowed to spend extra time setting up conditions to make copying |
22 // faster. Copying of overlapping regions is not supported. | 22 // faster. Copying of overlapping regions is not supported. |
23 // Dest register ends at the position after the last character written. | 23 // Dest register ends at the position after the last character written. |
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 | |
36 static void GenerateHashAddCharacter(MacroAssembler* masm, | |
37 Register hash, | |
38 Register character); | |
39 | |
40 static void GenerateHashGetHash(MacroAssembler* masm, | |
41 Register hash); | |
42 | |
43 // Compare two flat ASCII strings and returns result in v0. | 31 // Compare two flat ASCII strings and returns result in v0. |
44 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, | 32 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
45 Register left, | 33 Register left, |
46 Register right, | 34 Register right, |
47 Register scratch1, | 35 Register scratch1, |
48 Register scratch2, | 36 Register scratch2, |
49 Register scratch3, | 37 Register scratch3, |
50 Register scratch4); | 38 Register scratch4); |
51 | 39 |
52 // Compares two flat ASCII strings for equality and returns result in v0. | 40 // Compares two flat ASCII strings for equality and returns result in v0. |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 | 402 |
415 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 403 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
416 | 404 |
417 DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub); | 405 DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub); |
418 }; | 406 }; |
419 | 407 |
420 | 408 |
421 } } // namespace v8::internal | 409 } } // namespace v8::internal |
422 | 410 |
423 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 411 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
OLD | NEW |