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 23 matching lines...) Expand all Loading... |
34 !defined(__BIONIC_HAVE_STRUCT_SIGCONTEXT) | 34 !defined(__BIONIC_HAVE_STRUCT_SIGCONTEXT) |
35 #include <asm/sigcontext.h> | 35 #include <asm/sigcontext.h> |
36 #endif | 36 #endif |
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 "v8.h" | 44 #include "src/v8.h" |
45 | 45 |
46 #include "platform.h" | 46 #include "src/platform.h" |
47 #include "v8threads.h" | 47 #include "src/v8threads.h" |
48 | 48 |
49 | 49 |
50 namespace v8 { | 50 namespace v8 { |
51 namespace internal { | 51 namespace internal { |
52 | 52 |
53 | 53 |
54 #ifdef __arm__ | 54 #ifdef __arm__ |
55 | 55 |
56 bool OS::ArmUsingHardFloat() { | 56 bool OS::ArmUsingHardFloat() { |
57 // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify | 57 // 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 | 425 #endif |
426 return munmap(base, size) == 0; | 426 return munmap(base, size) == 0; |
427 } | 427 } |
428 | 428 |
429 | 429 |
430 bool VirtualMemory::HasLazyCommits() { | 430 bool VirtualMemory::HasLazyCommits() { |
431 return true; | 431 return true; |
432 } | 432 } |
433 | 433 |
434 } } // namespace v8::internal | 434 } } // namespace v8::internal |
OLD | NEW |