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 Linux goes here. For the POSIX-compatible | 5 // Platform-specific code for Linux 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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 #if defined(LEAK_SANITIZER) | 38 #if defined(LEAK_SANITIZER) |
39 #include <sanitizer/lsan_interface.h> | 39 #include <sanitizer/lsan_interface.h> |
40 #endif | 40 #endif |
41 | 41 |
42 #undef MAP_TYPE | 42 #undef MAP_TYPE |
43 | 43 |
44 #include "src/v8.h" | 44 #include "src/v8.h" |
45 | 45 |
46 #include "src/platform.h" | 46 #include "src/platform.h" |
47 #include "src/v8threads.h" | |
48 | 47 |
49 | 48 |
50 namespace v8 { | 49 namespace v8 { |
51 namespace internal { | 50 namespace internal { |
52 | 51 |
53 | 52 |
54 #ifdef __arm__ | 53 #ifdef __arm__ |
55 | 54 |
56 bool OS::ArmUsingHardFloat() { | 55 bool OS::ArmUsingHardFloat() { |
57 // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify | 56 // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 #endif | 424 #endif |
426 return munmap(base, size) == 0; | 425 return munmap(base, size) == 0; |
427 } | 426 } |
428 | 427 |
429 | 428 |
430 bool VirtualMemory::HasLazyCommits() { | 429 bool VirtualMemory::HasLazyCommits() { |
431 return true; | 430 return true; |
432 } | 431 } |
433 | 432 |
434 } } // namespace v8::internal | 433 } } // namespace v8::internal |
OLD | NEW |