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

Unified Diff: src/circular-queue-inl.h

Issue 1356223004: Move heap and CPU profilers into a dedicated directory. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebaseline Created 5 years, 3 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
« no previous file with comments | « src/circular-queue.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/circular-queue-inl.h
diff --git a/src/circular-queue-inl.h b/src/circular-queue-inl.h
deleted file mode 100644
index 2f06f6c496f2d53656f63e39bf816a269a763d75..0000000000000000000000000000000000000000
--- a/src/circular-queue-inl.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2011 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_CIRCULAR_QUEUE_INL_H_
-#define V8_CIRCULAR_QUEUE_INL_H_
-
-#include "src/circular-queue.h"
-
-namespace v8 {
-namespace internal {
-
-template<typename T, unsigned L>
-SamplingCircularQueue<T, L>::SamplingCircularQueue()
- : enqueue_pos_(buffer_),
- dequeue_pos_(buffer_) {
-}
-
-
-template<typename T, unsigned L>
-SamplingCircularQueue<T, L>::~SamplingCircularQueue() {
-}
-
-
-template<typename T, unsigned L>
-T* SamplingCircularQueue<T, L>::Peek() {
- base::MemoryBarrier();
- if (base::Acquire_Load(&dequeue_pos_->marker) == kFull) {
- return &dequeue_pos_->record;
- }
- return NULL;
-}
-
-
-template<typename T, unsigned L>
-void SamplingCircularQueue<T, L>::Remove() {
- base::Release_Store(&dequeue_pos_->marker, kEmpty);
- dequeue_pos_ = Next(dequeue_pos_);
-}
-
-
-template<typename T, unsigned L>
-T* SamplingCircularQueue<T, L>::StartEnqueue() {
- base::MemoryBarrier();
- if (base::Acquire_Load(&enqueue_pos_->marker) == kEmpty) {
- return &enqueue_pos_->record;
- }
- return NULL;
-}
-
-
-template<typename T, unsigned L>
-void SamplingCircularQueue<T, L>::FinishEnqueue() {
- base::Release_Store(&enqueue_pos_->marker, kFull);
- enqueue_pos_ = Next(enqueue_pos_);
-}
-
-
-template<typename T, unsigned L>
-typename SamplingCircularQueue<T, L>::Entry* SamplingCircularQueue<T, L>::Next(
- Entry* entry) {
- Entry* next = entry + 1;
- if (next == &buffer_[L]) return buffer_;
- return next;
-}
-
-} } // namespace v8::internal
-
-#endif // V8_CIRCULAR_QUEUE_INL_H_
« no previous file with comments | « src/circular-queue.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698