| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_OS_WINDOWS) | 6 #if defined(TARGET_OS_WINDOWS) |
| 7 | 7 |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 #include "vm/vtune.h" | |
| 10 | 9 |
| 11 #include <malloc.h> // NOLINT | 10 #include <malloc.h> // NOLINT |
| 12 #include <process.h> // NOLINT | 11 #include <process.h> // NOLINT |
| 13 #include <time.h> // NOLINT | 12 #include <time.h> // NOLINT |
| 14 | 13 |
| 15 #include "platform/utils.h" | 14 #include "platform/utils.h" |
| 16 #include "platform/assert.h" | 15 #include "platform/assert.h" |
| 17 #include "platform/thread.h" | 16 #include "vm/thread.h" |
| 17 #include "vm/vtune.h" |
| 18 | 18 |
| 19 namespace dart { | 19 namespace dart { |
| 20 | 20 |
| 21 const char* OS::Name() { | 21 const char* OS::Name() { |
| 22 return "windows"; | 22 return "windows"; |
| 23 } | 23 } |
| 24 | 24 |
| 25 | 25 |
| 26 intptr_t OS::ProcessId() { | 26 intptr_t OS::ProcessId() { |
| 27 return static_cast<intptr_t>(GetCurrentProcessId()); | 27 return static_cast<intptr_t>(GetCurrentProcessId()); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 } | 327 } |
| 328 | 328 |
| 329 | 329 |
| 330 void OS::Exit(int code) { | 330 void OS::Exit(int code) { |
| 331 exit(code); | 331 exit(code); |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace dart | 334 } // namespace dart |
| 335 | 335 |
| 336 #endif // defined(TARGET_OS_WINDOWS) | 336 #endif // defined(TARGET_OS_WINDOWS) |
| OLD | NEW |