| 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 if (y == -0.5) return 1.0 / sqrt(x + 0.0); | 845 if (y == -0.5) return 1.0 / sqrt(x + 0.0); |
| 846 } | 846 } |
| 847 if (isnan(y) || ((x == 1 || x == -1) && isinf(y))) { | 847 if (isnan(y) || ((x == 1 || x == -1) && isinf(y))) { |
| 848 return OS::nan_value(); | 848 return OS::nan_value(); |
| 849 } | 849 } |
| 850 return pow(x, y); | 850 return pow(x, y); |
| 851 } | 851 } |
| 852 | 852 |
| 853 | 853 |
| 854 ExternalReference ExternalReference::power_double_double_function() { | 854 ExternalReference ExternalReference::power_double_double_function() { |
| 855 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_double))); | 855 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_double), |
| 856 FP_RETURN_CALL)); |
| 856 } | 857 } |
| 857 | 858 |
| 858 | 859 |
| 859 ExternalReference ExternalReference::power_double_int_function() { | 860 ExternalReference ExternalReference::power_double_int_function() { |
| 860 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_int))); | 861 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_int), |
| 862 FP_RETURN_CALL)); |
| 861 } | 863 } |
| 862 | 864 |
| 863 | 865 |
| 864 static int native_compare_doubles(double y, double x) { | 866 static int native_compare_doubles(double y, double x) { |
| 865 if (x == y) return EQUAL; | 867 if (x == y) return EQUAL; |
| 866 return x < y ? LESS : GREATER; | 868 return x < y ? LESS : GREATER; |
| 867 } | 869 } |
| 868 | 870 |
| 869 | 871 |
| 870 ExternalReference ExternalReference::double_fp_operation( | 872 ExternalReference ExternalReference::double_fp_operation( |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 964 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 963 state_.written_position = state_.current_position; | 965 state_.written_position = state_.current_position; |
| 964 written = true; | 966 written = true; |
| 965 } | 967 } |
| 966 | 968 |
| 967 // Return whether something was written. | 969 // Return whether something was written. |
| 968 return written; | 970 return written; |
| 969 } | 971 } |
| 970 | 972 |
| 971 } } // namespace v8::internal | 973 } } // namespace v8::internal |
| OLD | NEW |