Chromium Code Reviews| 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 |