OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 #ifndef V8_PROFILER_CIRCULAR_QUEUE_H_ | 5 #ifndef V8_PROFILER_CIRCULAR_QUEUE_H_ |
6 #define V8_PROFILER_CIRCULAR_QUEUE_H_ | 6 #define V8_PROFILER_CIRCULAR_QUEUE_H_ |
7 | 7 |
8 #include "src/base/atomicops.h" | 8 #include "src/base/atomicops.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 Entry* Next(Entry* entry); | 56 Entry* Next(Entry* entry); |
57 | 57 |
58 Entry buffer_[Length]; | 58 Entry buffer_[Length]; |
59 V8_ALIGNED(PROCESSOR_CACHE_LINE_SIZE) Entry* enqueue_pos_; | 59 V8_ALIGNED(PROCESSOR_CACHE_LINE_SIZE) Entry* enqueue_pos_; |
60 V8_ALIGNED(PROCESSOR_CACHE_LINE_SIZE) Entry* dequeue_pos_; | 60 V8_ALIGNED(PROCESSOR_CACHE_LINE_SIZE) Entry* dequeue_pos_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(SamplingCircularQueue); | 62 DISALLOW_COPY_AND_ASSIGN(SamplingCircularQueue); |
63 }; | 63 }; |
64 | 64 |
65 | 65 |
66 } } // namespace v8::internal | 66 } // namespace internal |
| 67 } // namespace v8 |
67 | 68 |
68 #endif // V8_PROFILER_CIRCULAR_QUEUE_H_ | 69 #endif // V8_PROFILER_CIRCULAR_QUEUE_H_ |
OLD | NEW |