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> |
11 #include <stdarg.h> | 11 #include <stdarg.h> |
12 #include <strings.h> // index | 12 #include <strings.h> // index |
| 13 #include <sys/mman.h> // mmap & munmap |
13 #include <sys/time.h> | 14 #include <sys/time.h> |
14 #include <sys/mman.h> // mmap & munmap | |
15 #include <unistd.h> // sysconf | 15 #include <unistd.h> // sysconf |
16 | 16 |
17 #undef MAP_TYPE | 17 #undef MAP_TYPE |
18 | 18 |
19 #include "src/v8.h" | 19 #include "src/v8.h" |
20 | 20 |
21 #include "src/base/win32-headers.h" | 21 #include "src/base/win32-headers.h" |
22 #include "src/platform.h" | 22 #include "src/platform.h" |
23 | 23 |
24 namespace v8 { | 24 namespace v8 { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 return VirtualFree(base, 0, MEM_RELEASE) != 0; | 321 return VirtualFree(base, 0, MEM_RELEASE) != 0; |
322 } | 322 } |
323 | 323 |
324 | 324 |
325 bool VirtualMemory::HasLazyCommits() { | 325 bool VirtualMemory::HasLazyCommits() { |
326 // TODO(alph): implement for the platform. | 326 // TODO(alph): implement for the platform. |
327 return false; | 327 return false; |
328 } | 328 } |
329 | 329 |
330 } } // namespace v8::internal | 330 } } // namespace v8::internal |
OLD | NEW |