| 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" | 9 #include "vm/vtune.h" |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 | 156 |
| 157 uword OS::GetStackSizeLimit() { | 157 uword OS::GetStackSizeLimit() { |
| 158 // TODO(ager): Can you programatically determine the actual stack | 158 // TODO(ager): Can you programatically determine the actual stack |
| 159 // size limit on Windows? The 2MB limit is set at link time. Maybe | 159 // size limit on Windows? The 2MB limit is set at link time. Maybe |
| 160 // that value should be propagated here? | 160 // that value should be propagated here? |
| 161 return 2 * MB; | 161 return 2 * MB; |
| 162 } | 162 } |
| 163 | 163 |
| 164 | 164 |
| 165 bool OS::AllowStackFrameIteratorFromAnotherThread() { |
| 166 return true; |
| 167 } |
| 168 |
| 169 |
| 165 int OS::NumberOfAvailableProcessors() { | 170 int OS::NumberOfAvailableProcessors() { |
| 166 SYSTEM_INFO info; | 171 SYSTEM_INFO info; |
| 167 GetSystemInfo(&info); | 172 GetSystemInfo(&info); |
| 168 return info.dwNumberOfProcessors; | 173 return info.dwNumberOfProcessors; |
| 169 } | 174 } |
| 170 | 175 |
| 171 | 176 |
| 172 void OS::Sleep(int64_t millis) { | 177 void OS::Sleep(int64_t millis) { |
| 173 ::Sleep(millis); | 178 ::Sleep(millis); |
| 174 } | 179 } |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 335 } |
| 331 | 336 |
| 332 | 337 |
| 333 void OS::Exit(int code) { | 338 void OS::Exit(int code) { |
| 334 exit(code); | 339 exit(code); |
| 335 } | 340 } |
| 336 | 341 |
| 337 } // namespace dart | 342 } // namespace dart |
| 338 | 343 |
| 339 #endif // defined(TARGET_OS_WINDOWS) | 344 #endif // defined(TARGET_OS_WINDOWS) |
| OLD | NEW |