Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: third_party/tcmalloc/vendor/src/stacktrace_config.h

Issue 9316021: Update the tcmalloc vendor branch to r144 (gperftools 2.0). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reuploading Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/tcmalloc/vendor/src/stacktrace_config.h
diff --git a/third_party/tcmalloc/vendor/src/stacktrace_config.h b/third_party/tcmalloc/vendor/src/stacktrace_config.h
index b166ca272dee2e1cb67cbe8b80f5a7ac89e58080..72d108a8c24ec50742e1e70fd9ab7a226f707742 100644
--- a/third_party/tcmalloc/vendor/src/stacktrace_config.h
+++ b/third_party/tcmalloc/vendor/src/stacktrace_config.h
@@ -46,11 +46,8 @@
#ifndef BASE_STACKTRACE_CONFIG_H_
#define BASE_STACKTRACE_CONFIG_H_
-#ifdef __native_client__
-# define STACKTRACE_INL_HEADER "base/stacktrace_nacl-inl.h"
-
-// i386 and x86_64 case.
-#elif (defined(__i386__) || defined(__x86_64__)) && __GNUC__ >= 2
+// First, the i386 and x86_64 case.
+#if (defined(__i386__) || defined(__x86_64__)) && __GNUC__ >= 2
# if !defined(NO_FRAME_POINTER)
# define STACKTRACE_INL_HEADER "stacktrace_x86-inl.h"
# define STACKTRACE_SKIP_CONTEXT_ROUTINES 1
@@ -71,6 +68,14 @@
# define STACKTRACE_INL_HEADER "stacktrace_generic-inl.h"
# endif
+// The ARM case
+#elif defined(__arm__) && __GNUC__ >= 2
+# if !defined(NO_FRAME_POINTER)
+# define STACKTRACE_INL_HEADER "stacktrace_arm-inl.h"
+# else
+# error stacktrace without frame pointer is not supported on ARM
+# endif
+
// The Windows case -- probably cygwin and mingw will use one of the
// x86-includes above, but if not, we can fall back to windows intrinsics.
#elif defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(__MINGW32__)
« no previous file with comments | « third_party/tcmalloc/vendor/src/stacktrace_arm-inl.h ('k') | third_party/tcmalloc/vendor/src/stacktrace_generic-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698