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

Side by Side Diff: src/platform-linux.cc

Issue 9192010: Parallelize cpplint in presubmit and fix usage of DISALLOW_* macros. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 const int vm_tgid_; 1171 const int vm_tgid_;
1172 const int interval_; 1172 const int interval_;
1173 RuntimeProfilerRateLimiter rate_limiter_; 1173 RuntimeProfilerRateLimiter rate_limiter_;
1174 1174
1175 // Protects the process wide state below. 1175 // Protects the process wide state below.
1176 static Mutex* mutex_; 1176 static Mutex* mutex_;
1177 static SignalSender* instance_; 1177 static SignalSender* instance_;
1178 static bool signal_handler_installed_; 1178 static bool signal_handler_installed_;
1179 static struct sigaction old_signal_handler_; 1179 static struct sigaction old_signal_handler_;
1180 1180
1181 private:
1181 DISALLOW_COPY_AND_ASSIGN(SignalSender); 1182 DISALLOW_COPY_AND_ASSIGN(SignalSender);
1182 }; 1183 };
1183 1184
1184 1185
1185 Mutex* SignalSender::mutex_ = OS::CreateMutex(); 1186 Mutex* SignalSender::mutex_ = OS::CreateMutex();
1186 SignalSender* SignalSender::instance_ = NULL; 1187 SignalSender* SignalSender::instance_ = NULL;
1187 struct sigaction SignalSender::old_signal_handler_; 1188 struct sigaction SignalSender::old_signal_handler_;
1188 bool SignalSender::signal_handler_installed_ = false; 1189 bool SignalSender::signal_handler_installed_ = false;
1189 1190
1190 1191
(...skipping 21 matching lines...) Expand all
1212 1213
1213 1214
1214 void Sampler::Stop() { 1215 void Sampler::Stop() {
1215 ASSERT(IsActive()); 1216 ASSERT(IsActive());
1216 SignalSender::RemoveActiveSampler(this); 1217 SignalSender::RemoveActiveSampler(this);
1217 SetActive(false); 1218 SetActive(false);
1218 } 1219 }
1219 1220
1220 1221
1221 } } // namespace v8::internal 1222 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-freebsd.cc ('k') | src/platform-macos.cc » ('j') | tools/presubmit.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698