| Index: src/platform-linux.cc
|
| diff --git a/src/platform-linux.cc b/src/platform-linux.cc
|
| index 613d2434b9b8dfc8b580fab57c89bb3e35399906..438de226297bffebeff48e36b5d4a05475645112 100644
|
| --- a/src/platform-linux.cc
|
| +++ b/src/platform-linux.cc
|
| @@ -88,11 +88,6 @@ double ceiling(double x) {
|
| static Mutex* limit_mutex = NULL;
|
|
|
|
|
| -void OS::PostSetUp() {
|
| - POSIXPostSetUp();
|
| -}
|
| -
|
| -
|
| uint64_t OS::CpuFeaturesImpliedByPlatform() {
|
| return 0; // Linux runs on anything.
|
| }
|
| @@ -384,11 +379,6 @@ bool OS::IsOutsideAllocatedSpace(void* address) {
|
| }
|
|
|
|
|
| -size_t OS::AllocateAlignment() {
|
| - return sysconf(_SC_PAGESIZE);
|
| -}
|
| -
|
| -
|
| void* OS::Allocate(const size_t requested,
|
| size_t* allocated,
|
| bool is_executable) {
|
| @@ -407,49 +397,6 @@ void* OS::Allocate(const size_t requested,
|
| }
|
|
|
|
|
| -void OS::Free(void* address, const size_t size) {
|
| - // TODO(1240712): munmap has a return value which is ignored here.
|
| - int result = munmap(address, size);
|
| - USE(result);
|
| - ASSERT(result == 0);
|
| -}
|
| -
|
| -
|
| -void OS::Sleep(int milliseconds) {
|
| - unsigned int ms = static_cast<unsigned int>(milliseconds);
|
| - usleep(1000 * ms);
|
| -}
|
| -
|
| -
|
| -int OS::NumberOfCores() {
|
| - return sysconf(_SC_NPROCESSORS_ONLN);
|
| -}
|
| -
|
| -
|
| -void OS::Abort() {
|
| - // Redirect to std abort to signal abnormal program termination.
|
| - if (FLAG_break_on_abort) {
|
| - DebugBreak();
|
| - }
|
| - abort();
|
| -}
|
| -
|
| -
|
| -void OS::DebugBreak() {
|
| -// TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x,
|
| -// which is the architecture of generated code).
|
| -#if (defined(__arm__) || defined(__thumb__))
|
| - asm("bkpt 0");
|
| -#elif defined(__mips__)
|
| - asm("break");
|
| -#elif defined(__native_client__)
|
| - asm("hlt");
|
| -#else
|
| - asm("int $3");
|
| -#endif
|
| -}
|
| -
|
| -
|
| void OS::DumpBacktrace() {
|
| // backtrace is a glibc extension.
|
| #if defined(__GLIBC__) && !defined(__UCLIBC__)
|
|
|