| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |