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 | |
32 // Generate string hash. | |
33 static void GenerateHashInit(MacroAssembler* masm, | |
34 Register hash, | |
35 Register character); | |
36 | |
37 static void GenerateHashAddCharacter(MacroAssembler* masm, | |
38 Register hash, | |
39 Register character); | |
40 | |
41 static void GenerateHashGetHash(MacroAssembler* masm, | |
42 Register hash); | |
43 | |
44 // Compare two flat ASCII strings and returns result in v0. | 31 // Compare two flat ASCII strings and returns result in v0. |
45 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, | 32 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
46 Register left, | 33 Register left, |
47 Register right, | 34 Register right, |
48 Register scratch1, | 35 Register scratch1, |
49 Register scratch2, | 36 Register scratch2, |
50 Register scratch3, | 37 Register scratch3, |
51 Register scratch4); | 38 Register scratch4); |
52 | 39 |
53 // 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... |
415 | 402 |
416 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 403 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
417 | 404 |
418 DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub); | 405 DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub); |
419 }; | 406 }; |
420 | 407 |
421 | 408 |
422 } } // namespace v8::internal | 409 } } // namespace v8::internal |
423 | 410 |
424 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 411 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
OLD | NEW |