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

Unified Diff: third_party/WebKit/Source/wtf/allocator/PartitionAllocator.cpp

Issue 2762943002: Move files in wtf/ to platform/wtf/ (Part 6). (Closed)
Patch Set: Rebase. Created 3 years, 9 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
Index: third_party/WebKit/Source/wtf/allocator/PartitionAllocator.cpp
diff --git a/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.cpp b/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.cpp
deleted file mode 100644
index a84596432989a6971cb61958979fe115780a0ab3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "wtf/allocator/PartitionAllocator.h"
-
-#include "base/allocator/partition_allocator/partition_alloc.h"
-#include "wtf/allocator/Partitions.h"
-
-namespace WTF {
-
-void* PartitionAllocator::allocateBacking(size_t size, const char* typeName) {
- return Partitions::bufferMalloc(size, typeName);
-}
-
-void PartitionAllocator::freeVectorBacking(void* address) {
- Partitions::bufferFree(address);
-}
-
-void PartitionAllocator::freeHashTableBacking(void* address) {
- Partitions::bufferFree(address);
-}
-
-template <>
-char* PartitionAllocator::allocateVectorBacking<char>(size_t size) {
- return reinterpret_cast<char*>(
- allocateBacking(size, "PartitionAllocator::allocateVectorBacking<char>"));
-}
-
-template <>
-char* PartitionAllocator::allocateExpandedVectorBacking<char>(size_t size) {
- return reinterpret_cast<char*>(allocateBacking(
- size, "PartitionAllocator::allocateExpandedVectorBacking<char>"));
-}
-
-} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h ('k') | third_party/WebKit/Source/wtf/allocator/Partitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698