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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #endif | 47 #endif |
48 #ifndef NOMCX | 48 #ifndef NOMCX |
49 #define NOMCX | 49 #define NOMCX |
50 #endif | 50 #endif |
51 // Require Windows 2000 or higher (this is required for the IsDebuggerPresent | 51 // Require Windows 2000 or higher (this is required for the IsDebuggerPresent |
52 // function to be present). | 52 // function to be present). |
53 #ifndef _WIN32_WINNT | 53 #ifndef _WIN32_WINNT |
54 #define _WIN32_WINNT 0x500 | 54 #define _WIN32_WINNT 0x500 |
55 #endif | 55 #endif |
56 | 56 |
| 57 #ifdef _WIN64 |
| 58 #error Windows 64-bit blatforms not supported |
| 59 #endif |
| 60 |
57 #include <windows.h> | 61 #include <windows.h> |
58 | 62 |
59 #include <time.h> // For LocalOffset() implementation. | 63 #include <time.h> // For LocalOffset() implementation. |
60 #include <mmsystem.h> // For timeGetTime(). | 64 #include <mmsystem.h> // For timeGetTime(). |
61 #ifdef __MINGW32__ | 65 #ifdef __MINGW32__ |
62 // Require Windows XP or higher when compiling with MinGW. This is for MinGW | 66 // Require Windows XP or higher when compiling with MinGW. This is for MinGW |
63 // header files to expose getaddrinfo. | 67 // header files to expose getaddrinfo. |
64 #undef _WIN32_WINNT | 68 #undef _WIN32_WINNT |
65 #define _WIN32_WINNT 0x501 | 69 #define _WIN32_WINNT 0x501 |
66 #endif // __MINGW32__ | 70 #endif // __MINGW32__ |
(...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1868 | 1872 |
1869 // Release the thread handles | 1873 // Release the thread handles |
1870 CloseHandle(data_->sampler_thread_); | 1874 CloseHandle(data_->sampler_thread_); |
1871 CloseHandle(data_->profiled_thread_); | 1875 CloseHandle(data_->profiled_thread_); |
1872 } | 1876 } |
1873 | 1877 |
1874 | 1878 |
1875 #endif // ENABLE_LOGGING_AND_PROFILING | 1879 #endif // ENABLE_LOGGING_AND_PROFILING |
1876 | 1880 |
1877 } } // namespace v8::internal | 1881 } } // namespace v8::internal |
OLD | NEW |