| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 if (y == -0.5) return 1.0 / sqrt(x + 0.0); | 843 if (y == -0.5) return 1.0 / sqrt(x + 0.0); |
| 844 } | 844 } |
| 845 if (isnan(y) || ((x == 1 || x == -1) && isinf(y))) { | 845 if (isnan(y) || ((x == 1 || x == -1) && isinf(y))) { |
| 846 return OS::nan_value(); | 846 return OS::nan_value(); |
| 847 } | 847 } |
| 848 return pow(x, y); | 848 return pow(x, y); |
| 849 } | 849 } |
| 850 | 850 |
| 851 | 851 |
| 852 ExternalReference ExternalReference::power_double_double_function() { | 852 ExternalReference ExternalReference::power_double_double_function() { |
| 853 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_double))); | 853 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_double), |
| 854 FP_RETURN_CALL)); |
| 854 } | 855 } |
| 855 | 856 |
| 856 | 857 |
| 857 ExternalReference ExternalReference::power_double_int_function() { | 858 ExternalReference ExternalReference::power_double_int_function() { |
| 858 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_int))); | 859 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_int), |
| 860 FP_RETURN_CALL)); |
| 859 } | 861 } |
| 860 | 862 |
| 861 | 863 |
| 862 static int native_compare_doubles(double y, double x) { | 864 static int native_compare_doubles(double y, double x) { |
| 863 if (x == y) return EQUAL; | 865 if (x == y) return EQUAL; |
| 864 return x < y ? LESS : GREATER; | 866 return x < y ? LESS : GREATER; |
| 865 } | 867 } |
| 866 | 868 |
| 867 | 869 |
| 868 ExternalReference ExternalReference::double_fp_operation( | 870 ExternalReference ExternalReference::double_fp_operation( |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 962 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 961 state_.written_position = state_.current_position; | 963 state_.written_position = state_.current_position; |
| 962 written = true; | 964 written = true; |
| 963 } | 965 } |
| 964 | 966 |
| 965 // Return whether something was written. | 967 // Return whether something was written. |
| 966 return written; | 968 return written; |
| 967 } | 969 } |
| 968 | 970 |
| 969 } } // namespace v8::internal | 971 } } // namespace v8::internal |
| OLD | NEW |