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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 265 } |
266 | 266 |
267 void Generate(MacroAssembler* masm); | 267 void Generate(MacroAssembler* masm); |
268 }; | 268 }; |
269 | 269 |
270 | 270 |
271 class NumberToStringStub: public PlatformCodeStub { | 271 class NumberToStringStub: public PlatformCodeStub { |
272 public: | 272 public: |
273 NumberToStringStub() { } | 273 NumberToStringStub() { } |
274 | 274 |
275 // Generate code to do a lookup in the number string cache. If the number in | |
276 // the register object is found in the cache the generated code falls through | |
277 // with the result in the result register. The object and the result register | |
278 // can be the same. If the number is not found in the cache the code jumps to | |
279 // the label not_found with only the content of register object unchanged. | |
280 static void GenerateLookupNumberStringCache(MacroAssembler* masm, | |
281 Register object, | |
282 Register result, | |
283 Register scratch1, | |
284 Register scratch2, | |
285 Register scratch3, | |
286 Label* not_found); | |
287 | |
288 private: | 275 private: |
289 Major MajorKey() { return NumberToString; } | 276 Major MajorKey() { return NumberToString; } |
290 int MinorKey() { return 0; } | 277 int MinorKey() { return 0; } |
291 | 278 |
292 void Generate(MacroAssembler* masm); | 279 void Generate(MacroAssembler* masm); |
293 }; | 280 }; |
294 | 281 |
295 | 282 |
296 class RecordWriteStub: public PlatformCodeStub { | 283 class RecordWriteStub: public PlatformCodeStub { |
297 public: | 284 public: |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 548 |
562 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 549 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
563 | 550 |
564 LookupMode mode_; | 551 LookupMode mode_; |
565 }; | 552 }; |
566 | 553 |
567 | 554 |
568 } } // namespace v8::internal | 555 } } // namespace v8::internal |
569 | 556 |
570 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 557 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
OLD | NEW |