| 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 <backtrace.h> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 #include <semaphore.h> | 10 #include <semaphore.h> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include <sys/mman.h> // mmap & munmap | 24 #include <sys/mman.h> // mmap & munmap |
| 25 #include <sys/procfs.h> | 25 #include <sys/procfs.h> |
| 26 #include <sys/stat.h> // open | 26 #include <sys/stat.h> // open |
| 27 #include <sys/types.h> // mmap & munmap | 27 #include <sys/types.h> // mmap & munmap |
| 28 #include <unistd.h> // sysconf | 28 #include <unistd.h> // sysconf |
| 29 | 29 |
| 30 #include <cmath> | 30 #include <cmath> |
| 31 | 31 |
| 32 #undef MAP_TYPE | 32 #undef MAP_TYPE |
| 33 | 33 |
| 34 #include "src/platform.h" | 34 #include "src/base/macros.h" |
| 35 #include "src/utils.h" | 35 #include "src/base/platform/platform.h" |
| 36 | 36 |
| 37 | 37 |
| 38 namespace v8 { | 38 namespace v8 { |
| 39 namespace internal { | 39 namespace base { |
| 40 | 40 |
| 41 // 0 is never a valid thread id on Qnx since tids and pids share a | 41 // 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). | 42 // name space and pid 0 is reserved (see man 2 kill). |
| 43 static const pthread_t kNoThread = (pthread_t) 0; | 43 static const pthread_t kNoThread = (pthread_t) 0; |
| 44 | 44 |
| 45 | 45 |
| 46 #ifdef __arm__ | 46 #ifdef __arm__ |
| 47 | 47 |
| 48 bool OS::ArmUsingHardFloat() { | 48 bool OS::ArmUsingHardFloat() { |
| 49 // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify | 49 // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 364 |
| 365 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { | 365 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { |
| 366 return munmap(base, size) == 0; | 366 return munmap(base, size) == 0; |
| 367 } | 367 } |
| 368 | 368 |
| 369 | 369 |
| 370 bool VirtualMemory::HasLazyCommits() { | 370 bool VirtualMemory::HasLazyCommits() { |
| 371 return false; | 371 return false; |
| 372 } | 372 } |
| 373 | 373 |
| 374 } } // namespace v8::internal | 374 } } // namespace v8::base |
| OLD | NEW |