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

Side by Side Diff: third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h

Issue 2371323009: reflow comments in wtf/allocator (Closed)
Patch Set: no backslash Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/allocator/PartitionAllocTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 static bool isAllocationAllowed() { return true; } 124 static bool isAllocationAllowed() { return true; }
125 125
126 static void enterGCForbiddenScope() {} 126 static void enterGCForbiddenScope() {}
127 static void leaveGCForbiddenScope() {} 127 static void leaveGCForbiddenScope() {}
128 128
129 private: 129 private:
130 static void* allocateBacking(size_t, const char* typeName); 130 static void* allocateBacking(size_t, const char* typeName);
131 }; 131 };
132 132
133 // Specializations for heap profiling, so type profiling of |char| is possible 133 // Specializations for heap profiling, so type profiling of |char| is possible
134 // even in official builds (because |char| makes up a large portion of the heap. ) 134 // even in official builds (because |char| makes up a large portion of the
135 // heap.)
135 template <> 136 template <>
136 WTF_EXPORT char* PartitionAllocator::allocateVectorBacking<char>(size_t); 137 WTF_EXPORT char* PartitionAllocator::allocateVectorBacking<char>(size_t);
137 template <> 138 template <>
138 WTF_EXPORT char* PartitionAllocator::allocateExpandedVectorBacking<char>( 139 WTF_EXPORT char* PartitionAllocator::allocateExpandedVectorBacking<char>(
139 size_t); 140 size_t);
140 141
141 } // namespace WTF 142 } // namespace WTF
142 143
143 #define WTF_USE_ALLOCATOR(ClassName, Allocator) \ 144 #define WTF_USE_ALLOCATOR(ClassName, Allocator) \
144 public: \ 145 public: \
(...skipping 11 matching lines...) Expand all
156 return location; \ 157 return location; \
157 } \ 158 } \
158 void* operator new(size_t, void* location) { return location; } \ 159 void* operator new(size_t, void* location) { return location; } \
159 \ 160 \
160 private: \ 161 private: \
161 typedef int __thisIsHereToForceASemicolonAfterThisMacro 162 typedef int __thisIsHereToForceASemicolonAfterThisMacro
162 163
163 using WTF::PartitionAllocator; 164 using WTF::PartitionAllocator;
164 165
165 #endif // WTF_PartitionAllocator_h 166 #endif // WTF_PartitionAllocator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/allocator/PartitionAllocTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698