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 <pthread.h> | 8 #include <pthread.h> |
9 #include <semaphore.h> | 9 #include <semaphore.h> |
10 #include <signal.h> | 10 #include <signal.h> |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include <strings.h> // index | 25 #include <strings.h> // index |
26 #include <errno.h> | 26 #include <errno.h> |
27 #include <stdarg.h> | 27 #include <stdarg.h> |
28 #include <sys/procfs.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 #include "src/v8threads.h" | |
36 | 35 |
37 | 36 |
38 namespace v8 { | 37 namespace v8 { |
39 namespace internal { | 38 namespace internal { |
40 | 39 |
41 // 0 is never a valid thread id on Qnx since tids and pids share a | 40 // 0 is never a valid thread id on Qnx since tids and pids share a |
42 // name space and pid 0 is reserved (see man 2 kill). | 41 // name space and pid 0 is reserved (see man 2 kill). |
43 static const pthread_t kNoThread = (pthread_t) 0; | 42 static const pthread_t kNoThread = (pthread_t) 0; |
44 | 43 |
45 | 44 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { | 367 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { |
369 return munmap(base, size) == 0; | 368 return munmap(base, size) == 0; |
370 } | 369 } |
371 | 370 |
372 | 371 |
373 bool VirtualMemory::HasLazyCommits() { | 372 bool VirtualMemory::HasLazyCommits() { |
374 return false; | 373 return false; |
375 } | 374 } |
376 | 375 |
377 } } // namespace v8::internal | 376 } } // namespace v8::internal |
OLD | NEW |