| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Platform-specific code for Cygwin goes here. For the POSIX-compatible | 5 // Platform-specific code for Cygwin goes here. For the POSIX-compatible |
| 6 // parts, the implementation is in platform-posix.cc. | 6 // parts, the implementation is in platform-posix.cc. |
| 7 | 7 |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 #include <semaphore.h> | 10 #include <semaphore.h> |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { | 245 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { |
| 246 return VirtualFree(base, 0, MEM_RELEASE) != 0; | 246 return VirtualFree(base, 0, MEM_RELEASE) != 0; |
| 247 } | 247 } |
| 248 | 248 |
| 249 | 249 |
| 250 bool VirtualMemory::HasLazyCommits() { | 250 bool VirtualMemory::HasLazyCommits() { |
| 251 // TODO(alph): implement for the platform. | 251 // TODO(alph): implement for the platform. |
| 252 return false; | 252 return false; |
| 253 } | 253 } |
| 254 | 254 |
| 255 } } // namespace v8::base | 255 } // namespace base |
| 256 } // namespace v8 |
| OLD | NEW |