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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 if (fast_exp_function == NULL) { | 206 if (fast_exp_function == NULL) { |
207 init_fast_exp_function(); | 207 init_fast_exp_function(); |
208 } | 208 } |
209 } | 209 } |
210 | 210 |
211 | 211 |
212 void MathSetup() { | 212 void MathSetup() { |
213 #ifdef _WIN64 | 213 #ifdef _WIN64 |
214 init_modulo_function(); | 214 init_modulo_function(); |
215 #endif | 215 #endif |
216 init_fast_log_function(); | |
217 // fast_exp is initialized lazily. | 216 // fast_exp is initialized lazily. |
218 init_fast_sqrt_function(); | 217 init_fast_sqrt_function(); |
219 } | 218 } |
220 | 219 |
221 | 220 |
222 // ---------------------------------------------------------------------------- | 221 // ---------------------------------------------------------------------------- |
223 // The Time class represents time on win32. A timestamp is represented as | 222 // The Time class represents time on win32. A timestamp is represented as |
224 // a 64-bit integer in 100 nanoseconds since January 1, 1601 (UTC). JavaScript | 223 // a 64-bit integer in 100 nanoseconds since January 1, 1601 (UTC). JavaScript |
225 // timestamps are represented as a doubles in milliseconds since 00:00:00 UTC, | 224 // timestamps are represented as a doubles in milliseconds since 00:00:00 UTC, |
226 // January 1, 1970. | 225 // January 1, 1970. |
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 ASSERT(result); | 1505 ASSERT(result); |
1507 } | 1506 } |
1508 | 1507 |
1509 | 1508 |
1510 | 1509 |
1511 void Thread::YieldCPU() { | 1510 void Thread::YieldCPU() { |
1512 Sleep(0); | 1511 Sleep(0); |
1513 } | 1512 } |
1514 | 1513 |
1515 } } // namespace v8::internal | 1514 } } // namespace v8::internal |
OLD | NEW |