| 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 OpenBSD and NetBSD goes here. For the | 5 // Platform-specific code for OpenBSD and NetBSD goes here. For the |
| 6 // POSIX-compatible parts, the implementation is in platform-posix.cc. | 6 // POSIX-compatible parts, the implementation is in platform-posix.cc. |
| 7 | 7 |
| 8 #include <pthread.h> | 8 #include <pthread.h> |
| 9 #include <semaphore.h> | 9 #include <semaphore.h> |
| 10 #include <signal.h> | 10 #include <signal.h> |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { | 279 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { |
| 280 return munmap(base, size) == 0; | 280 return munmap(base, size) == 0; |
| 281 } | 281 } |
| 282 | 282 |
| 283 | 283 |
| 284 bool VirtualMemory::HasLazyCommits() { | 284 bool VirtualMemory::HasLazyCommits() { |
| 285 // TODO(alph): implement for the platform. | 285 // TODO(alph): implement for the platform. |
| 286 return false; | 286 return false; |
| 287 } | 287 } |
| 288 | 288 |
| 289 } } // namespace v8::base | 289 } // namespace base |
| 290 } // namespace v8 |
| OLD | NEW |