OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 #endif // __MINGW32__ | 210 #endif // __MINGW32__ |
211 | 211 |
212 // Generate a pseudo-random number in the range 0-2^31-1. Usually | 212 // Generate a pseudo-random number in the range 0-2^31-1. Usually |
213 // defined in stdlib.h. Missing in both Microsoft Visual Studio C++ and MinGW. | 213 // defined in stdlib.h. Missing in both Microsoft Visual Studio C++ and MinGW. |
214 int random() { | 214 int random() { |
215 return rand(); | 215 return rand(); |
216 } | 216 } |
217 | 217 |
218 | 218 |
219 namespace v8 { namespace internal { | 219 namespace v8 { |
| 220 namespace internal { |
220 | 221 |
221 double ceiling(double x) { | 222 double ceiling(double x) { |
222 return ceil(x); | 223 return ceil(x); |
223 } | 224 } |
224 | 225 |
225 // ---------------------------------------------------------------------------- | 226 // ---------------------------------------------------------------------------- |
226 // The Time class represents time on win32. A timestamp is represented as | 227 // The Time class represents time on win32. A timestamp is represented as |
227 // a 64-bit integer in 100 nano-seconds since January 1, 1601 (UTC). JavaScript | 228 // a 64-bit integer in 100 nano-seconds since January 1, 1601 (UTC). JavaScript |
228 // timestamps are represented as a doubles in milliseconds since 00:00:00 UTC, | 229 // timestamps are represented as a doubles in milliseconds since 00:00:00 UTC, |
229 // January 1, 1970. | 230 // January 1, 1970. |
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 | 1870 |
1870 // Release the thread handles | 1871 // Release the thread handles |
1871 CloseHandle(data_->sampler_thread_); | 1872 CloseHandle(data_->sampler_thread_); |
1872 CloseHandle(data_->profiled_thread_); | 1873 CloseHandle(data_->profiled_thread_); |
1873 } | 1874 } |
1874 | 1875 |
1875 | 1876 |
1876 #endif // ENABLE_LOGGING_AND_PROFILING | 1877 #endif // ENABLE_LOGGING_AND_PROFILING |
1877 | 1878 |
1878 } } // namespace v8::internal | 1879 } } // namespace v8::internal |
OLD | NEW |