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

Unified Diff: src/unbound-queue.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/snapshot/serialize.cc ('k') | src/unbound-queue-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/unbound-queue.h
diff --git a/src/unbound-queue.h b/src/unbound-queue.h
deleted file mode 100644
index 3e129289739a39703cd7f7e70cf8f61059a17ae0..0000000000000000000000000000000000000000
--- a/src/unbound-queue.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2010 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_UNBOUND_QUEUE_
-#define V8_UNBOUND_QUEUE_
-
-#include "src/allocation.h"
-#include "src/base/atomicops.h"
-
-namespace v8 {
-namespace internal {
-
-
-// Lock-free unbound queue for small records. Intended for
-// transferring small records between a Single producer and a Single
-// consumer. Doesn't have restrictions on the number of queued
-// elements, so producer never blocks. Implemented after Herb
-// Sutter's article:
-// http://www.ddj.com/high-performance-computing/210604448
-template<typename Record>
-class UnboundQueue BASE_EMBEDDED {
- public:
- inline UnboundQueue();
- inline ~UnboundQueue();
-
- INLINE(bool Dequeue(Record* rec));
- INLINE(void Enqueue(const Record& rec));
- INLINE(bool IsEmpty() const);
- INLINE(Record* Peek() const);
-
- private:
- INLINE(void DeleteFirst());
-
- struct Node;
-
- Node* first_;
- base::AtomicWord divider_; // Node*
- base::AtomicWord last_; // Node*
-
- DISALLOW_COPY_AND_ASSIGN(UnboundQueue);
-};
-
-
-} } // namespace v8::internal
-
-#endif // V8_UNBOUND_QUEUE_
« no previous file with comments | « src/snapshot/serialize.cc ('k') | src/unbound-queue-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698