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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 // Generate code to do a lookup in the number string cache. If the number in | 824 // Generate code to do a lookup in the number string cache. If the number in |
825 // the register object is found in the cache the generated code falls through | 825 // the register object is found in the cache the generated code falls through |
826 // with the result in the result register. The object and the result register | 826 // with the result in the result register. The object and the result register |
827 // can be the same. If the number is not found in the cache the code jumps to | 827 // can be the same. If the number is not found in the cache the code jumps to |
828 // the label not_found with only the content of register object unchanged. | 828 // the label not_found with only the content of register object unchanged. |
829 static void GenerateLookupNumberStringCache(MacroAssembler* masm, | 829 static void GenerateLookupNumberStringCache(MacroAssembler* masm, |
830 Register object, | 830 Register object, |
831 Register result, | 831 Register result, |
832 Register scratch1, | 832 Register scratch1, |
833 Register scratch2, | 833 Register scratch2, |
| 834 Register scratch3, |
834 bool object_is_smi, | 835 bool object_is_smi, |
835 Label* not_found); | 836 Label* not_found); |
836 | 837 |
837 private: | 838 private: |
838 Major MajorKey() { return NumberToString; } | 839 Major MajorKey() { return NumberToString; } |
839 int MinorKey() { return 0; } | 840 int MinorKey() { return 0; } |
840 | 841 |
841 void Generate(MacroAssembler* masm); | 842 void Generate(MacroAssembler* masm); |
842 | 843 |
843 const char* GetName() { return "NumberToStringStub"; } | 844 const char* GetName() { return "NumberToStringStub"; } |
844 | 845 |
845 #ifdef DEBUG | 846 #ifdef DEBUG |
846 void Print() { | 847 void Print() { |
847 PrintF("NumberToStringStub\n"); | 848 PrintF("NumberToStringStub\n"); |
848 } | 849 } |
849 #endif | 850 #endif |
850 }; | 851 }; |
851 | 852 |
852 | 853 |
853 } } // namespace v8::internal | 854 } } // namespace v8::internal |
854 | 855 |
855 #endif // V8_ARM_CODEGEN_ARM_H_ | 856 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |