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

Side by Side Diff: src/log.cc

Issue 10834430: Introduce DISABLE_ASAN macro to disable AddressSanitizer instrumentation for given functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: move comment down Created 8 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 | « src/globals.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 bool running_; 138 bool running_;
139 139
140 // Tells whether we are currently recording tick samples. 140 // Tells whether we are currently recording tick samples.
141 bool paused_; 141 bool paused_;
142 }; 142 };
143 143
144 144
145 // 145 //
146 // StackTracer implementation 146 // StackTracer implementation
147 // 147 //
148 void StackTracer::Trace(Isolate* isolate, TickSample* sample) { 148 DISABLE_ASAN void StackTracer::Trace(Isolate* isolate, TickSample* sample) {
149 ASSERT(isolate->IsInitialized()); 149 ASSERT(isolate->IsInitialized());
150 150
151 // Avoid collecting traces while doing GC. 151 // Avoid collecting traces while doing GC.
152 if (sample->state == GC) return; 152 if (sample->state == GC) return;
153 153
154 const Address js_entry_sp = 154 const Address js_entry_sp =
155 Isolate::js_entry_sp(isolate->thread_local_top()); 155 Isolate::js_entry_sp(isolate->thread_local_top());
156 if (js_entry_sp == 0) { 156 if (js_entry_sp == 0) {
157 // Not executing JS now. 157 // Not executing JS now.
158 return; 158 return;
(...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { 1783 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) {
1784 ASSERT(sampler->IsActive()); 1784 ASSERT(sampler->IsActive());
1785 ScopedLock lock(active_samplers_mutex); 1785 ScopedLock lock(active_samplers_mutex);
1786 ASSERT(active_samplers_ != NULL); 1786 ASSERT(active_samplers_ != NULL);
1787 bool removed = active_samplers_->RemoveElement(sampler); 1787 bool removed = active_samplers_->RemoveElement(sampler);
1788 ASSERT(removed); 1788 ASSERT(removed);
1789 USE(removed); 1789 USE(removed);
1790 } 1790 }
1791 1791
1792 } } // namespace v8::internal 1792 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/globals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698