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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 UNARY_MATH_FUNCTION(sin, CreateTranscendentalFunction(TranscendentalCache::SIN)) | 207 UNARY_MATH_FUNCTION(sin, CreateTranscendentalFunction(TranscendentalCache::SIN)) |
208 UNARY_MATH_FUNCTION(cos, CreateTranscendentalFunction(TranscendentalCache::COS)) | 208 UNARY_MATH_FUNCTION(cos, CreateTranscendentalFunction(TranscendentalCache::COS)) |
209 UNARY_MATH_FUNCTION(tan, CreateTranscendentalFunction(TranscendentalCache::TAN)) | 209 UNARY_MATH_FUNCTION(tan, CreateTranscendentalFunction(TranscendentalCache::TAN)) |
210 UNARY_MATH_FUNCTION(log, CreateTranscendentalFunction(TranscendentalCache::LOG)) | 210 UNARY_MATH_FUNCTION(log, CreateTranscendentalFunction(TranscendentalCache::LOG)) |
211 UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction()) | 211 UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction()) |
212 | 212 |
213 #undef MATH_FUNCTION | 213 #undef MATH_FUNCTION |
214 | 214 |
215 | 215 |
216 void MathSetup() { | 216 void MathSetup() { |
| 217 #ifdef _WIN64 |
217 init_modulo_function(); | 218 init_modulo_function(); |
| 219 #endif |
218 init_fast_sin_function(); | 220 init_fast_sin_function(); |
219 init_fast_cos_function(); | 221 init_fast_cos_function(); |
220 init_fast_tan_function(); | 222 init_fast_tan_function(); |
221 init_fast_log_function(); | 223 init_fast_log_function(); |
222 init_fast_sqrt_function(); | 224 init_fast_sqrt_function(); |
223 } | 225 } |
224 | 226 |
225 | 227 |
226 // ---------------------------------------------------------------------------- | 228 // ---------------------------------------------------------------------------- |
227 // The Time class represents time on win32. A timestamp is represented as | 229 // The Time class represents time on win32. A timestamp is represented as |
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2099 | 2101 |
2100 | 2102 |
2101 void Sampler::Stop() { | 2103 void Sampler::Stop() { |
2102 ASSERT(IsActive()); | 2104 ASSERT(IsActive()); |
2103 SamplerThread::RemoveActiveSampler(this); | 2105 SamplerThread::RemoveActiveSampler(this); |
2104 SetActive(false); | 2106 SetActive(false); |
2105 } | 2107 } |
2106 | 2108 |
2107 | 2109 |
2108 } } // namespace v8::internal | 2110 } } // namespace v8::internal |
OLD | NEW |