| OLD | NEW |
| 1 // Copyright (c) 2011 Sun Microsystems Inc. | 1 // Copyright (c) 2011 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 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 static double math_sin_double(double x) { | 1044 static double math_sin_double(double x) { |
| 1045 return sin(x); | 1045 return sin(x); |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 | 1048 |
| 1049 static double math_cos_double(double x) { | 1049 static double math_cos_double(double x) { |
| 1050 return cos(x); | 1050 return cos(x); |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 | 1053 |
| 1054 static double math_tan_double(double x) { |
| 1055 return tan(x); |
| 1056 } |
| 1057 |
| 1058 |
| 1054 static double math_log_double(double x) { | 1059 static double math_log_double(double x) { |
| 1055 return log(x); | 1060 return log(x); |
| 1056 } | 1061 } |
| 1057 | 1062 |
| 1058 | 1063 |
| 1059 ExternalReference ExternalReference::math_sin_double_function( | 1064 ExternalReference ExternalReference::math_sin_double_function( |
| 1060 Isolate* isolate) { | 1065 Isolate* isolate) { |
| 1061 return ExternalReference(Redirect(isolate, | 1066 return ExternalReference(Redirect(isolate, |
| 1062 FUNCTION_ADDR(math_sin_double), | 1067 FUNCTION_ADDR(math_sin_double), |
| 1063 BUILTIN_FP_CALL)); | 1068 BUILTIN_FP_CALL)); |
| 1064 } | 1069 } |
| 1065 | 1070 |
| 1066 | 1071 |
| 1067 ExternalReference ExternalReference::math_cos_double_function( | 1072 ExternalReference ExternalReference::math_cos_double_function( |
| 1068 Isolate* isolate) { | 1073 Isolate* isolate) { |
| 1069 return ExternalReference(Redirect(isolate, | 1074 return ExternalReference(Redirect(isolate, |
| 1070 FUNCTION_ADDR(math_cos_double), | 1075 FUNCTION_ADDR(math_cos_double), |
| 1071 BUILTIN_FP_CALL)); | 1076 BUILTIN_FP_CALL)); |
| 1072 } | 1077 } |
| 1073 | 1078 |
| 1074 | 1079 |
| 1080 ExternalReference ExternalReference::math_tan_double_function( |
| 1081 Isolate* isolate) { |
| 1082 return ExternalReference(Redirect(isolate, |
| 1083 FUNCTION_ADDR(math_tan_double), |
| 1084 BUILTIN_FP_CALL)); |
| 1085 } |
| 1086 |
| 1087 |
| 1075 ExternalReference ExternalReference::math_log_double_function( | 1088 ExternalReference ExternalReference::math_log_double_function( |
| 1076 Isolate* isolate) { | 1089 Isolate* isolate) { |
| 1077 return ExternalReference(Redirect(isolate, | 1090 return ExternalReference(Redirect(isolate, |
| 1078 FUNCTION_ADDR(math_log_double), | 1091 FUNCTION_ADDR(math_log_double), |
| 1079 BUILTIN_FP_CALL)); | 1092 BUILTIN_FP_CALL)); |
| 1080 } | 1093 } |
| 1081 | 1094 |
| 1082 | 1095 |
| 1083 // Helper function to compute x^y, where y is known to be an | 1096 // Helper function to compute x^y, where y is known to be an |
| 1084 // integer. Uses binary decomposition to limit the number of | 1097 // integer. Uses binary decomposition to limit the number of |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1248 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1261 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 1249 state_.written_position = state_.current_position; | 1262 state_.written_position = state_.current_position; |
| 1250 written = true; | 1263 written = true; |
| 1251 } | 1264 } |
| 1252 | 1265 |
| 1253 // Return whether something was written. | 1266 // Return whether something was written. |
| 1254 return written; | 1267 return written; |
| 1255 } | 1268 } |
| 1256 | 1269 |
| 1257 } } // namespace v8::internal | 1270 } } // namespace v8::internal |
| OLD | NEW |