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

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

Issue 576001: Merged third_party/tcmalloc/vendor/src(google-perftools r87) into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Removed the unnecessary printf and ASSERT(0) Created 10 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 unified diff | Download patch | Annotate | Revision Log
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 28 matching lines...) Expand all
39 // GetStack{Trace,Frames}WithContext should not be provided. 39 // GetStack{Trace,Frames}WithContext should not be provided.
40 // 40 //
41 // This header is "private" to stacktrace.cc and 41 // This header is "private" to stacktrace.cc and
42 // stacktrace_with_context.cc. 42 // stacktrace_with_context.cc.
43 // 43 //
44 // DO NOT include it into any other files. 44 // DO NOT include it into any other files.
45 45
46 #ifndef BASE_STACKTRACE_CONFIG_H_ 46 #ifndef BASE_STACKTRACE_CONFIG_H_
47 #define BASE_STACKTRACE_CONFIG_H_ 47 #define BASE_STACKTRACE_CONFIG_H_
48 48
49 // First, the i386 case. 49 // First, the i386 and x86_64 case.
50 #if defined(__i386__) && __GNUC__ >= 2 50 #if (defined(__i386__) || defined(__x86_64__)) && __GNUC__ >= 2
51 # if !defined(NO_FRAME_POINTER)
52 # define STACKTRACE_INL_HEADER "stacktrace_x86-inl.h"
53 # define STACKTRACE_SKIP_CONTEXT_ROUTINES 1
54 # else
55 # define STACKTRACE_INL_HEADER "stacktrace_generic-inl.h"
56 # endif
57
58 // Now, the x86_64 case.
59 #elif defined(__x86_64__) && __GNUC__ >= 2
60 # if !defined(NO_FRAME_POINTER) 51 # if !defined(NO_FRAME_POINTER)
61 # define STACKTRACE_INL_HEADER "stacktrace_x86-inl.h" 52 # define STACKTRACE_INL_HEADER "stacktrace_x86-inl.h"
62 # define STACKTRACE_SKIP_CONTEXT_ROUTINES 1 53 # define STACKTRACE_SKIP_CONTEXT_ROUTINES 1
63 # elif defined(HAVE_LIBUNWIND_H) // a proxy for having libunwind installed 54 # elif defined(HAVE_LIBUNWIND_H) // a proxy for having libunwind installed
64 # define STACKTRACE_INL_HEADER "stacktrace_libunwind-inl.h" 55 # define STACKTRACE_INL_HEADER "stacktrace_libunwind-inl.h"
65 # elif defined(__linux) 56 # elif defined(__linux)
66 # error Cannnot calculate stack trace: need either libunwind or frame-pointers (see INSTALL file) 57 # error Cannnot calculate stack trace: need either libunwind or frame-pointers (see INSTALL file)
67 # else 58 # else
68 # error Cannnot calculate stack trace: need libunwind (see INSTALL file) 59 # error Cannnot calculate stack trace: need libunwind (see INSTALL file)
69 # endif 60 # endif
70 61
71 // The PowerPC case 62 // The PowerPC case
72 #elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2 63 #elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2
73 # if !defined(NO_FRAME_POINTER) 64 # if !defined(NO_FRAME_POINTER)
74 # define STACKTRACE_INL_HEADER "stacktrace_powerpc-inl.h" 65 # define STACKTRACE_INL_HEADER "stacktrace_powerpc-inl.h"
75 # else 66 # else
76 # define STACKTRACE_INL_HEADER "stacktrace_generic-inl.h" 67 # define STACKTRACE_INL_HEADER "stacktrace_generic-inl.h"
77 # endif 68 # endif
78 69
79 // The Windows case -- probably cygwin and mingw will use one of the 70 // 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. 71 // x86-includes above, but if not, we can fall back to windows intrinsics.
81 #elif defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined (__MINGW32__) 72 #elif defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined (__MINGW32__)
82 # define STACKTRACE_INL_HEADER "stacktrace_win32-inl.h" 73 # define STACKTRACE_INL_HEADER "stacktrace_win32-inl.h"
83 74
84 #endif // all the cases 75 #endif // all the cases
85 #endif // BASE_STACKTRACE_CONFIG_H_ 76 #endif // BASE_STACKTRACE_CONFIG_H_
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/solaris/libstdc++.la ('k') | third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698