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 25 matching lines...) Expand all Loading... |
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 #include <cmath> | 42 #include <cmath> |
43 | 43 |
44 #undef MAP_TYPE | 44 #undef MAP_TYPE |
45 | 45 |
46 #include "src/platform.h" | 46 #include "src/base/macros.h" |
47 #include "src/utils.h" | 47 #include "src/base/platform/platform.h" |
48 | 48 |
49 | 49 |
50 namespace v8 { | 50 namespace v8 { |
51 namespace internal { | 51 namespace base { |
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 |
58 // the Floating Point ABI used (PCS stands for Procedure Call Standard). | 58 // the Floating Point ABI used (PCS stands for Procedure Call Standard). |
59 // We use these as well as a couple of other defines to statically determine | 59 // We use these as well as a couple of other defines to statically determine |
60 // what FP ABI used. | 60 // what FP ABI used. |
61 // GCC versions 4.4 and below don't support hard-fp. | 61 // GCC versions 4.4 and below don't support hard-fp. |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 __lsan_unregister_root_region(base, size); | 422 __lsan_unregister_root_region(base, size); |
423 #endif | 423 #endif |
424 return munmap(base, size) == 0; | 424 return munmap(base, size) == 0; |
425 } | 425 } |
426 | 426 |
427 | 427 |
428 bool VirtualMemory::HasLazyCommits() { | 428 bool VirtualMemory::HasLazyCommits() { |
429 return true; | 429 return true; |
430 } | 430 } |
431 | 431 |
432 } } // namespace v8::internal | 432 } } // namespace v8::base |
OLD | NEW |