Commit Graph
4 Commits
Author SHA1 Message Date
Nicholas Nethercote c7ab9c86dc Bug 1339695 (part 10) - Rename SPS_* macros as GP_*. r=jseward.
This removes the final mentions of the old "SPS" name.
2017-02-18 00:57:03 +11:00
Nicholas Nethercote f2a7677b91 Bug 1339695 (part 8) - Clean up platform detection throughout the profiler. r=mstange.
Currently we use the SPS_* macros in some places, but also use other ones like
__arm__ and ANDROID and XP_{WIN,MAC,LINUX}. This patch makes the profiler
consistently use the SPS_* macros and removes the V8_HOST_ARCH_* macros.

The patch also does the following.

- Cleans up some header inclusions, e.g. including pthread.h directly in the
  files that use it, and removing some unneeded android/log.h inclusions.

- Removes an unused branch in SetSampleContext() -- we don't support ARM on
  anything other than Android, and glibc 2.3 is ancient.

- Doesn't use SPS_* in PseudoStack.h because that would require exporting
  PlatformMacros.h, which doesn't seem worthwhile.

Some things that aid the understanding of this patch.

- XP_LINUX and LINUX are both defined for Linux *and* Android.

- x86/Android is the only supported platform that doesn't define
  HAVE_NATIVE_UNWIND.

- Every platform that defines USE_LUL_STACKWALK also defines
  HAVE_NATIVE_UNWIND.
2017-02-18 00:56:21 +11:00
Benoit Girard 588b4da994 Bug 989499 - Part 2: Use FramePointerStackwalk on windows. r=rjmuizel 2014-03-28 16:31:15 -04:00
Jeff Muizelaar 27ce9a9e12 Bug 989499 - Part 1: Add a way to get the stack top. r=BenWa 2014-03-28 16:18:24 -04:00