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

Side by Side Diff: third_party/WebKit/Source/wtf/DefaultAllocator.h

Issue 1381493006: Remove unused Allocator::{enter,leave}NoAllocationScope(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/platform/heap/HeapAllocator.h ('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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 struct OtherType { 169 struct OtherType {
170 typedef T* Type; 170 typedef T* Type;
171 }; 171 };
172 172
173 template<typename T> 173 template<typename T>
174 static T& getOther(T* other) 174 static T& getOther(T* other)
175 { 175 {
176 return *other; 176 return *other;
177 } 177 }
178 178
179 static void enterNoAllocationScope() { }
180 static void leaveNoAllocationScope() { }
181 static void enterGCForbiddenScope() { } 179 static void enterGCForbiddenScope() { }
182 static void leaveGCForbiddenScope() { } 180 static void leaveGCForbiddenScope() { }
183 181
184 private: 182 private:
185 static void* allocateBacking(size_t); 183 static void* allocateBacking(size_t);
186 }; 184 };
187 185
188 // The Windows compiler seems to be very eager to instantiate things it won't 186 // The Windows compiler seems to be very eager to instantiate things it won't
189 // need, so unless we have this class we get compile errors. 187 // need, so unless we have this class we get compile errors.
190 class DefaultAllocatorDummyVisitor { 188 class DefaultAllocatorDummyVisitor {
(...skipping 20 matching lines...) Expand all
211 { \ 209 { \
212 ASSERT(location); \ 210 ASSERT(location); \
213 return location; \ 211 return location; \
214 } \ 212 } \
215 private: \ 213 private: \
216 typedef int __thisIsHereToForceASemicolonAfterThisMacro 214 typedef int __thisIsHereToForceASemicolonAfterThisMacro
217 215
218 using WTF::DefaultAllocator; 216 using WTF::DefaultAllocator;
219 217
220 #endif // WTF_DefaultAllocator_h 218 #endif // WTF_DefaultAllocator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapAllocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698