| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include <sys/stat.h> // open | 46 #include <sys/stat.h> // open |
| 47 #include <fcntl.h> // open | 47 #include <fcntl.h> // open |
| 48 #include <unistd.h> // sysconf | 48 #include <unistd.h> // sysconf |
| 49 #include <strings.h> // index | 49 #include <strings.h> // index |
| 50 #include <errno.h> | 50 #include <errno.h> |
| 51 #include <stdarg.h> | 51 #include <stdarg.h> |
| 52 | 52 |
| 53 // GLibc on ARM defines mcontext_t has a typedef for 'struct sigcontext'. | 53 // GLibc on ARM defines mcontext_t has a typedef for 'struct sigcontext'. |
| 54 // Old versions of the C library <signal.h> didn't define the type. | 54 // Old versions of the C library <signal.h> didn't define the type. |
| 55 #if defined(__ANDROID__) && !defined(__BIONIC_HAVE_UCONTEXT_T) && \ | 55 #if defined(__ANDROID__) && !defined(__BIONIC_HAVE_UCONTEXT_T) && \ |
| 56 defined(__arm__) && !defined(__BIONIC_HAVE_STRUCT_SIGCONTEXT) | 56 (defined(__arm__) || defined(__aarch64__)) && \ |
| 57 !defined(__BIONIC_HAVE_STRUCT_SIGCONTEXT) |
| 57 #include <asm/sigcontext.h> | 58 #include <asm/sigcontext.h> |
| 58 #endif | 59 #endif |
| 59 | 60 |
| 60 #if defined(LEAK_SANITIZER) | 61 #if defined(LEAK_SANITIZER) |
| 61 #include <sanitizer/lsan_interface.h> | 62 #include <sanitizer/lsan_interface.h> |
| 62 #endif | 63 #endif |
| 63 | 64 |
| 64 #undef MAP_TYPE | 65 #undef MAP_TYPE |
| 65 | 66 |
| 66 #include "v8.h" | 67 #include "v8.h" |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 #endif | 449 #endif |
| 449 return munmap(base, size) == 0; | 450 return munmap(base, size) == 0; |
| 450 } | 451 } |
| 451 | 452 |
| 452 | 453 |
| 453 bool VirtualMemory::HasLazyCommits() { | 454 bool VirtualMemory::HasLazyCommits() { |
| 454 return true; | 455 return true; |
| 455 } | 456 } |
| 456 | 457 |
| 457 } } // namespace v8::internal | 458 } } // namespace v8::internal |
| OLD | NEW |