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

Unified Diff: src/cpu-profiler-inl.h

Issue 1514006: C++ profiles processor: put under #ifdef and fix issues. (Closed)
Patch Set: Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: src/cpu-profiler-inl.h
diff --git a/src/cpu-profiler-inl.h b/src/cpu-profiler-inl.h
index 26ab643c3a2796d1a223a5fc66555a482f80b0b9..f04f4ced4fe130d28e593529affa468ee15c0d49 100644
--- a/src/cpu-profiler-inl.h
+++ b/src/cpu-profiler-inl.h
@@ -36,14 +36,16 @@
namespace v8 {
namespace internal {
+#ifdef ENABLE_CPP_PROFILES_PROCESSOR
Kevin Millikin (Chromium) 2010/03/30 11:26:29 You could wrap the entire contents of the file exc
mnaganov (inactive) 2010/03/30 11:35:24 Good idea! Fixed.
TickSample* ProfilerEventsProcessor::TickSampleEvent() {
TickSampleEventRecord* evt =
- reinterpret_cast<TickSampleEventRecord*>(ticks_buffer_.Enqueue());
+ TickSampleEventRecord::cast(ticks_buffer_.Enqueue());
evt->order = enqueue_order_; // No increment!
return &evt->sample;
}
+#endif // ENABLE_CPP_PROFILES_PROCESSOR
} } // namespace v8::internal
« SConstruct ('K') | « src/cpu-profiler.cc ('k') | src/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698