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

Side by Side Diff: third_party/tcmalloc/chromium/src/stacktrace_config.h

Issue 14321006: Adds TCMalloc support for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always use phtread_once Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/tcmalloc/chromium/src/stacktrace_android-inl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009, Google Inc. 1 // Copyright (c) 2009, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 # endif 61 # endif
62 62
63 // The PowerPC case 63 // The PowerPC case
64 #elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2 64 #elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2
65 # if !defined(NO_FRAME_POINTER) 65 # if !defined(NO_FRAME_POINTER)
66 # define STACKTRACE_INL_HEADER "stacktrace_powerpc-inl.h" 66 # define STACKTRACE_INL_HEADER "stacktrace_powerpc-inl.h"
67 # else 67 # else
68 # define STACKTRACE_INL_HEADER "stacktrace_generic-inl.h" 68 # define STACKTRACE_INL_HEADER "stacktrace_generic-inl.h"
69 # endif 69 # endif
70 70
71 // The Android case
72 #elif defined(__ANDROID__)
73 #define STACKTRACE_INL_HEADER "stacktrace_android-inl.h"
74
71 // The ARM case 75 // The ARM case
72 #elif defined(__arm__) && __GNUC__ >= 2 76 #elif defined(__arm__) && __GNUC__ >= 2
73 # if !defined(NO_FRAME_POINTER) 77 # if !defined(NO_FRAME_POINTER)
74 # define STACKTRACE_INL_HEADER "stacktrace_arm-inl.h" 78 # define STACKTRACE_INL_HEADER "stacktrace_arm-inl.h"
75 # else 79 # else
76 # error stacktrace without frame pointer is not supported on ARM 80 # error stacktrace without frame pointer is not supported on ARM
77 # endif 81 # endif
78 82
79 // The Windows case -- probably cygwin and mingw will use one of the 83 // The Windows case -- probably cygwin and mingw will use one of the
80 // x86-includes above, but if not, we can fall back to windows intrinsics. 84 // x86-includes above, but if not, we can fall back to windows intrinsics.
81 #elif defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined (__MINGW32__) 85 #elif defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined (__MINGW32__)
82 # define STACKTRACE_INL_HEADER "stacktrace_win32-inl.h" 86 # define STACKTRACE_INL_HEADER "stacktrace_win32-inl.h"
83 87
84 #endif // all the cases 88 #endif // all the cases
85 #endif // BASE_STACKTRACE_CONFIG_H_ 89 #endif // BASE_STACKTRACE_CONFIG_H_
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/stacktrace_android-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698