| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 | 766 |
| 767 // Load the number from object into double_dst in the double format. | 767 // Load the number from object into double_dst in the double format. |
| 768 // Control will jump to not_int32 if the value cannot be exactly represented | 768 // Control will jump to not_int32 if the value cannot be exactly represented |
| 769 // by a 32-bit integer. | 769 // by a 32-bit integer. |
| 770 // Floating point value in the 32-bit integer range that are not exact integer | 770 // Floating point value in the 32-bit integer range that are not exact integer |
| 771 // won't be loaded. | 771 // won't be loaded. |
| 772 static void LoadNumberAsInt32Double(MacroAssembler* masm, | 772 static void LoadNumberAsInt32Double(MacroAssembler* masm, |
| 773 Register object, | 773 Register object, |
| 774 Destination destination, | 774 Destination destination, |
| 775 DwVfpRegister double_dst, | 775 DwVfpRegister double_dst, |
| 776 DwVfpRegister double_scratch, |
| 776 Register dst1, | 777 Register dst1, |
| 777 Register dst2, | 778 Register dst2, |
| 778 Register heap_number_map, | 779 Register heap_number_map, |
| 779 Register scratch1, | 780 Register scratch1, |
| 780 Register scratch2, | 781 Register scratch2, |
| 781 SwVfpRegister single_scratch, | 782 SwVfpRegister single_scratch, |
| 782 Label* not_int32); | 783 Label* not_int32); |
| 783 | 784 |
| 784 // Loads the number from object into dst as a 32-bit integer. | 785 // Loads the number from object into dst as a 32-bit integer. |
| 785 // Control will jump to not_int32 if the object cannot be exactly represented | 786 // Control will jump to not_int32 if the object cannot be exactly represented |
| 786 // by a 32-bit integer. | 787 // by a 32-bit integer. |
| 787 // Floating point value in the 32-bit integer range that are not exact integer | 788 // Floating point value in the 32-bit integer range that are not exact integer |
| 788 // won't be converted. | 789 // won't be converted. |
| 789 // scratch3 is not used when VFP3 is supported. | 790 // scratch3 is not used when VFP3 is supported. |
| 790 static void LoadNumberAsInt32(MacroAssembler* masm, | 791 static void LoadNumberAsInt32(MacroAssembler* masm, |
| 791 Register object, | 792 Register object, |
| 792 Register dst, | 793 Register dst, |
| 793 Register heap_number_map, | 794 Register heap_number_map, |
| 794 Register scratch1, | 795 Register scratch1, |
| 795 Register scratch2, | 796 Register scratch2, |
| 796 Register scratch3, | 797 Register scratch3, |
| 797 DwVfpRegister double_scratch, | 798 DwVfpRegister double_scratch0, |
| 799 DwVfpRegister double_scratch1, |
| 798 Label* not_int32); | 800 Label* not_int32); |
| 799 | 801 |
| 800 // Generate non VFP3 code to check if a double can be exactly represented by a | 802 // Generate non VFP3 code to check if a double can be exactly represented by a |
| 801 // 32-bit integer. This does not check for 0 or -0, which need | 803 // 32-bit integer. This does not check for 0 or -0, which need |
| 802 // to be checked for separately. | 804 // to be checked for separately. |
| 803 // Control jumps to not_int32 if the value is not a 32-bit integer, and falls | 805 // Control jumps to not_int32 if the value is not a 32-bit integer, and falls |
| 804 // through otherwise. | 806 // through otherwise. |
| 805 // src1 and src2 will be cloberred. | 807 // src1 and src2 will be cloberred. |
| 806 // | 808 // |
| 807 // Expected input: | 809 // Expected input: |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 | 896 |
| 895 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 897 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 896 | 898 |
| 897 LookupMode mode_; | 899 LookupMode mode_; |
| 898 }; | 900 }; |
| 899 | 901 |
| 900 | 902 |
| 901 } } // namespace v8::internal | 903 } } // namespace v8::internal |
| 902 | 904 |
| 903 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 905 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |