OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 QNX goes here. For the POSIX-compatible | 5 // Platform-specific code for QNX 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 <backtrace.h> |
8 #include <pthread.h> | 9 #include <pthread.h> |
9 #include <semaphore.h> | 10 #include <semaphore.h> |
10 #include <signal.h> | 11 #include <signal.h> |
| 12 #include <stdlib.h> |
| 13 #include <sys/resource.h> |
11 #include <sys/time.h> | 14 #include <sys/time.h> |
12 #include <sys/resource.h> | |
13 #include <sys/types.h> | 15 #include <sys/types.h> |
14 #include <stdlib.h> | |
15 #include <ucontext.h> | 16 #include <ucontext.h> |
16 #include <backtrace.h> | |
17 | 17 |
18 // QNX requires memory pages to be marked as executable. | 18 // QNX requires memory pages to be marked as executable. |
19 // Otherwise, the OS raises an exception when executing code in that page. | 19 // Otherwise, the OS raises an exception when executing code in that page. |
| 20 #include <errno.h> |
| 21 #include <fcntl.h> // open |
| 22 #include <stdarg.h> |
| 23 #include <strings.h> // index |
| 24 #include <sys/mman.h> // mmap & munmap |
| 25 #include <sys/procfs.h> |
| 26 #include <sys/stat.h> // open |
20 #include <sys/types.h> // mmap & munmap | 27 #include <sys/types.h> // mmap & munmap |
21 #include <sys/mman.h> // mmap & munmap | |
22 #include <sys/stat.h> // open | |
23 #include <fcntl.h> // open | |
24 #include <unistd.h> // sysconf | 28 #include <unistd.h> // sysconf |
25 #include <strings.h> // index | |
26 #include <errno.h> | |
27 #include <stdarg.h> | |
28 #include <sys/procfs.h> | |
29 | 29 |
30 #undef MAP_TYPE | 30 #undef MAP_TYPE |
31 | 31 |
32 #include "src/v8.h" | 32 #include "src/v8.h" |
33 | 33 |
34 #include "src/platform.h" | 34 #include "src/platform.h" |
35 | 35 |
36 | 36 |
37 namespace v8 { | 37 namespace v8 { |
38 namespace internal { | 38 namespace internal { |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { | 364 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { |
365 return munmap(base, size) == 0; | 365 return munmap(base, size) == 0; |
366 } | 366 } |
367 | 367 |
368 | 368 |
369 bool VirtualMemory::HasLazyCommits() { | 369 bool VirtualMemory::HasLazyCommits() { |
370 return false; | 370 return false; |
371 } | 371 } |
372 | 372 |
373 } } // namespace v8::internal | 373 } } // namespace v8::internal |
OLD | NEW |