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 FreeBSD goes here. For the POSIX-compatible | 5 // Platform-specific code for FreeBSD 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 <pthread.h> | 8 #include <pthread.h> |
9 #include <semaphore.h> | 9 #include <semaphore.h> |
10 #include <signal.h> | 10 #include <signal.h> |
11 #include <stdlib.h> | 11 #include <stdlib.h> |
12 #include <sys/resource.h> | 12 #include <sys/resource.h> |
13 #include <sys/time.h> | 13 #include <sys/time.h> |
14 #include <sys/types.h> | 14 #include <sys/types.h> |
15 #include <sys/ucontext.h> | 15 #include <sys/ucontext.h> |
16 | 16 |
17 #include <sys/fcntl.h> // open | 17 #include <sys/fcntl.h> // open |
18 #include <sys/mman.h> // mmap & munmap | 18 #include <sys/mman.h> // mmap & munmap |
19 #include <sys/stat.h> // open | 19 #include <sys/stat.h> // open |
20 #include <sys/types.h> // mmap & munmap | |
21 #include <unistd.h> // getpagesize | 20 #include <unistd.h> // getpagesize |
22 // If you don't have execinfo.h then you need devel/libexecinfo from ports. | 21 // If you don't have execinfo.h then you need devel/libexecinfo from ports. |
23 #include <errno.h> | 22 #include <errno.h> |
24 #include <limits.h> | 23 #include <limits.h> |
25 #include <stdarg.h> | 24 #include <stdarg.h> |
26 #include <strings.h> // index | 25 #include <strings.h> // index |
27 | 26 |
28 #include <cmath> | 27 #include <cmath> |
29 | 28 |
30 #undef MAP_TYPE | 29 #undef MAP_TYPE |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 return munmap(base, size) == 0; | 249 return munmap(base, size) == 0; |
251 } | 250 } |
252 | 251 |
253 | 252 |
254 bool VirtualMemory::HasLazyCommits() { | 253 bool VirtualMemory::HasLazyCommits() { |
255 // TODO(alph): implement for the platform. | 254 // TODO(alph): implement for the platform. |
256 return false; | 255 return false; |
257 } | 256 } |
258 | 257 |
259 } } // namespace v8::base | 258 } } // namespace v8::base |
OLD | NEW |