OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 Register scratch4); | 619 Register scratch4); |
620 | 620 |
621 private: | 621 private: |
622 Major MajorKey() { return StringCompare; } | 622 Major MajorKey() { return StringCompare; } |
623 int MinorKey() { return 0; } | 623 int MinorKey() { return 0; } |
624 | 624 |
625 void Generate(MacroAssembler* masm); | 625 void Generate(MacroAssembler* masm); |
626 }; | 626 }; |
627 | 627 |
628 | 628 |
| 629 class NumberToStringStub: public CodeStub { |
| 630 public: |
| 631 NumberToStringStub() { } |
| 632 |
| 633 // Generate code to do a lookup in the number string cache. If the number in |
| 634 // the register object is found in the cache the generated code falls through |
| 635 // with the result in the result register. The object and the result register |
| 636 // can be the same. If the number is not found in the cache the code jumps to |
| 637 // the label not_found with only the content of register object unchanged. |
| 638 static void GenerateLookupNumberStringCache(MacroAssembler* masm, |
| 639 Register object, |
| 640 Register result, |
| 641 Register scratch1, |
| 642 Register scratch2, |
| 643 bool object_is_smi, |
| 644 Label* not_found); |
| 645 |
| 646 private: |
| 647 Major MajorKey() { return NumberToString; } |
| 648 int MinorKey() { return 0; } |
| 649 |
| 650 void Generate(MacroAssembler* masm); |
| 651 |
| 652 const char* GetName() { return "NumberToStringStub"; } |
| 653 |
| 654 #ifdef DEBUG |
| 655 void Print() { |
| 656 PrintF("NumberToStringStub\n"); |
| 657 } |
| 658 #endif |
| 659 }; |
| 660 |
| 661 |
629 } } // namespace v8::internal | 662 } } // namespace v8::internal |
630 | 663 |
631 #endif // V8_ARM_CODEGEN_ARM_H_ | 664 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |