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

Side by Side Diff: src/platform.h

Issue 2091019: CPU profiler: make code events handling scalable. (Closed)
Patch Set: Created 10 years, 7 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // Returns the double constant NAN 270 // Returns the double constant NAN
271 static double nan_value(); 271 static double nan_value();
272 272
273 // Support runtime detection of VFP3 on ARM CPUs. 273 // Support runtime detection of VFP3 on ARM CPUs.
274 static bool ArmCpuHasFeature(CpuFeature feature); 274 static bool ArmCpuHasFeature(CpuFeature feature);
275 275
276 // Returns the activation frame alignment constraint or zero if 276 // Returns the activation frame alignment constraint or zero if
277 // the platform doesn't care. Guaranteed to be a power of two. 277 // the platform doesn't care. Guaranteed to be a power of two.
278 static int ActivationFrameAlignment(); 278 static int ActivationFrameAlignment();
279 279
280 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value);
281
280 private: 282 private:
281 static const int msPerSecond = 1000; 283 static const int msPerSecond = 1000;
282 284
283 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); 285 DISALLOW_IMPLICIT_CONSTRUCTORS(OS);
284 }; 286 };
285 287
286 288
287 class VirtualMemory { 289 class VirtualMemory {
288 public: 290 public:
289 // Reserves virtual memory with size. 291 // Reserves virtual memory with size.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 bool active_; 568 bool active_;
567 PlatformData* data_; // Platform specific data. 569 PlatformData* data_; // Platform specific data.
568 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 570 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
569 }; 571 };
570 572
571 #endif // ENABLE_LOGGING_AND_PROFILING 573 #endif // ENABLE_LOGGING_AND_PROFILING
572 574
573 } } // namespace v8::internal 575 } } // namespace v8::internal
574 576
575 #endif // V8_PLATFORM_H_ 577 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/cpu-profiler-inl.h ('k') | src/platform-linux.cc » ('j') | src/unbound-queue.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698