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

Side by Side Diff: src/base/platform/platform.h

Issue 367033002: Reland "Linux perf tool support update + refactoring." (r22146, attempt #5) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git cl format Created 6 years, 5 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 | « BUILD.gn ('k') | src/base/platform/platform-posix.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project 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 // This module contains the platform-specific code. This make the rest of the 5 // This module contains the platform-specific code. This make the rest of the
6 // code less dependent on operating system, compilers and runtime libraries. 6 // code less dependent on operating system, compilers and runtime libraries.
7 // This module does specifically not deal with differences between different 7 // This module does specifically not deal with differences between different
8 // processor architecture. 8 // processor architecture.
9 // The platform classes have the same definition for all platforms. The 9 // The platform classes have the same definition for all platforms. The
10 // implementation for a particular platform is put in platform_<os>.cc. 10 // implementation for a particular platform is put in platform_<os>.cc.
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // Support runtime detection of whether the hard float option of the 300 // Support runtime detection of whether the hard float option of the
301 // EABI is used. 301 // EABI is used.
302 static bool ArmUsingHardFloat(); 302 static bool ArmUsingHardFloat();
303 303
304 // Returns the activation frame alignment constraint or zero if 304 // Returns the activation frame alignment constraint or zero if
305 // the platform doesn't care. Guaranteed to be a power of two. 305 // the platform doesn't care. Guaranteed to be a power of two.
306 static int ActivationFrameAlignment(); 306 static int ActivationFrameAlignment();
307 307
308 static int GetCurrentProcessId(); 308 static int GetCurrentProcessId();
309 309
310 static int GetCurrentThreadId();
311
310 private: 312 private:
311 static const int msPerSecond = 1000; 313 static const int msPerSecond = 1000;
312 314
313 #if V8_OS_POSIX 315 #if V8_OS_POSIX
314 static const char* GetGCFakeMMapFile(); 316 static const char* GetGCFakeMMapFile();
315 #endif 317 #endif
316 318
317 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); 319 DISALLOW_IMPLICIT_CONSTRUCTORS(OS);
318 }; 320 };
319 321
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 char name_[kMaxThreadNameLength]; 517 char name_[kMaxThreadNameLength];
516 int stack_size_; 518 int stack_size_;
517 Semaphore* start_semaphore_; 519 Semaphore* start_semaphore_;
518 520
519 DISALLOW_COPY_AND_ASSIGN(Thread); 521 DISALLOW_COPY_AND_ASSIGN(Thread);
520 }; 522 };
521 523
522 } } // namespace v8::base 524 } } // namespace v8::base
523 525
524 #endif // V8_BASE_PLATFORM_PLATFORM_H_ 526 #endif // V8_BASE_PLATFORM_PLATFORM_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/base/platform/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698