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

Side by Side Diff: base/tracked.cc

Issue 7461141: Rename BASE_API to BASE_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « base/tracked.h ('k') | base/tracked_objects.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(COMPILER_MSVC) 7 #if defined(COMPILER_MSVC)
8 // MSDN says to #include <intrin.h>, but that breaks the VS2005 build. 8 // MSDN says to #include <intrin.h>, but that breaks the VS2005 build.
9 extern "C" { 9 extern "C" {
10 void* _ReturnAddress(); 10 void* _ReturnAddress();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 default: 67 default:
68 output->push_back(*p); 68 output->push_back(*p);
69 break; 69 break;
70 } 70 }
71 } 71 }
72 } 72 }
73 73
74 #if defined(COMPILER_MSVC) 74 #if defined(COMPILER_MSVC)
75 __declspec(noinline) 75 __declspec(noinline)
76 #endif 76 #endif
77 BASE_API const void* GetProgramCounter() { 77 BASE_EXPORT const void* GetProgramCounter() {
78 #if defined(COMPILER_MSVC) 78 #if defined(COMPILER_MSVC)
79 return _ReturnAddress(); 79 return _ReturnAddress();
80 #elif defined(COMPILER_GCC) 80 #elif defined(COMPILER_GCC)
81 return __builtin_extract_return_addr(__builtin_return_address(0)); 81 return __builtin_extract_return_addr(__builtin_return_address(0));
82 #endif // COMPILER_GCC 82 #endif // COMPILER_GCC
83 83
84 return NULL; 84 return NULL;
85 } 85 }
86 86
87 //------------------------------------------------------------------------------ 87 //------------------------------------------------------------------------------
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 tracked_birth_time_ = TimeTicks::Now(); 138 tracked_birth_time_ = TimeTicks::Now();
139 } 139 }
140 140
141 bool Tracked::MissingBirthPlace() const { 141 bool Tracked::MissingBirthPlace() const {
142 return !tracked_births_ || tracked_births_->location().line_number() == -1; 142 return !tracked_births_ || tracked_births_->location().line_number() == -1;
143 } 143 }
144 144
145 #endif // !defined(TRACK_ALL_TASK_OBJECTS) 145 #endif // !defined(TRACK_ALL_TASK_OBJECTS)
146 146
147 } // namespace tracked_objects 147 } // namespace tracked_objects
OLDNEW
« no previous file with comments | « base/tracked.h ('k') | base/tracked_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698