OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 public: | 150 public: |
151 SubStringStub() {} | 151 SubStringStub() {} |
152 | 152 |
153 private: | 153 private: |
154 Major MajorKey() { return SubString; } | 154 Major MajorKey() { return SubString; } |
155 int MinorKey() { return 0; } | 155 int MinorKey() { return 0; } |
156 | 156 |
157 void Generate(MacroAssembler* masm); | 157 void Generate(MacroAssembler* masm); |
158 }; | 158 }; |
159 | 159 |
| 160 class StoreRegistersStateStub: public PlatformCodeStub { |
| 161 public: |
| 162 explicit StoreRegistersStateStub(SaveFPRegsMode with_fp) |
| 163 : save_doubles_(with_fp) {} |
| 164 |
| 165 static void GenerateAheadOfTime(Isolate* isolate); |
| 166 private: |
| 167 Major MajorKey() { return StoreRegistersState; } |
| 168 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } |
| 169 SaveFPRegsMode save_doubles_; |
| 170 |
| 171 void Generate(MacroAssembler* masm); |
| 172 }; |
| 173 |
| 174 class RestoreRegistersStateStub: public PlatformCodeStub { |
| 175 public: |
| 176 explicit RestoreRegistersStateStub(SaveFPRegsMode with_fp) |
| 177 : save_doubles_(with_fp) {} |
| 178 |
| 179 static void GenerateAheadOfTime(Isolate* isolate); |
| 180 private: |
| 181 Major MajorKey() { return RestoreRegistersState; } |
| 182 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } |
| 183 SaveFPRegsMode save_doubles_; |
| 184 |
| 185 void Generate(MacroAssembler* masm); |
| 186 }; |
160 | 187 |
161 class StringCompareStub: public PlatformCodeStub { | 188 class StringCompareStub: public PlatformCodeStub { |
162 public: | 189 public: |
163 StringCompareStub() { } | 190 StringCompareStub() { } |
164 | 191 |
165 // Compare two flat ASCII strings and returns result in v0. | 192 // Compare two flat ASCII strings and returns result in v0. |
166 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, | 193 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
167 Register left, | 194 Register left, |
168 Register right, | 195 Register right, |
169 Register scratch1, | 196 Register scratch1, |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 | 519 |
493 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 520 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
494 | 521 |
495 LookupMode mode_; | 522 LookupMode mode_; |
496 }; | 523 }; |
497 | 524 |
498 | 525 |
499 } } // namespace v8::internal | 526 } } // namespace v8::internal |
500 | 527 |
501 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 528 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
OLD | NEW |