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: Source/platform/heap/CallbackStack.h

Issue 1262993002: Remove unused CallbackStack::swap() method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | « no previous file | Source/platform/heap/CallbackStack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/CallbackStack.h
diff --git a/Source/platform/heap/CallbackStack.h b/Source/platform/heap/CallbackStack.h
index e7e60ba8d337ee3effa4f57606fa7606f9fbf7e6..0df035438c4904e45366b25d0991d20cf6da9a25 100644
--- a/Source/platform/heap/CallbackStack.h
+++ b/Source/platform/heap/CallbackStack.h
@@ -6,6 +6,7 @@
#define CallbackStack_h
#include "platform/heap/ThreadState.h"
+#include "wtf/Assertions.h"
namespace blink {
@@ -49,9 +50,9 @@ public:
bool hasCallbackForObject(const void*);
#endif
+private:
static const size_t blockSize = 8192;
-private:
class Block {
public:
explicit Block(Block* next)
@@ -86,13 +87,13 @@ private:
{
if (LIKELY(m_current < m_limit))
return m_current++;
- return 0;
+ return nullptr;
}
Item* pop()
{
if (UNLIKELY(isEmptyBlock()))
- return 0;
+ return nullptr;
return --m_current;
}
@@ -114,7 +115,6 @@ private:
Item* allocateEntrySlow();
void invokeOldestCallbacks(Block*, Block*, Visitor*);
bool hasJustOneBlock() const;
- void swap(CallbackStack* other);
Block* m_first;
Block* m_last;
« no previous file with comments | « no previous file | Source/platform/heap/CallbackStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698