| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef HEAP_STUBS_H_ | 5 #ifndef HEAP_STUBS_H_ |
| 6 #define HEAP_STUBS_H_ | 6 #define HEAP_STUBS_H_ |
| 7 | 7 |
| 8 #include "stddef.h" | 8 #include "stddef.h" |
| 9 | 9 |
| 10 #define WTF_MAKE_FAST_ALLOCATED \ |
| 11 public: \ |
| 12 void* operator new(size_t, void* p); \ |
| 13 void* operator new[](size_t, void* p); \ |
| 14 void* operator new(size_t size); \ |
| 15 private: \ |
| 16 typedef int __thisIsHereToForceASemicolonAfterThisMacro |
| 17 |
| 10 namespace WTF { | 18 namespace WTF { |
| 11 | 19 |
| 12 template<typename T> class RefCounted { }; | 20 template<typename T> class RefCounted { }; |
| 13 | 21 |
| 14 template<typename T> class RawPtr { | 22 template<typename T> class RawPtr { |
| 15 public: | 23 public: |
| 16 operator T*() const { return 0; } | 24 operator T*() const { return 0; } |
| 17 T* operator->() { return 0; } | 25 T* operator->() { return 0; } |
| 18 }; | 26 }; |
| 19 | 27 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 namespace WTF { | 223 namespace WTF { |
| 216 | 224 |
| 217 template<typename T> | 225 template<typename T> |
| 218 struct VectorTraits<WebCore::Member<T> > { | 226 struct VectorTraits<WebCore::Member<T> > { |
| 219 static const bool needsDestruction = false; | 227 static const bool needsDestruction = false; |
| 220 }; | 228 }; |
| 221 | 229 |
| 222 } | 230 } |
| 223 | 231 |
| 224 #endif | 232 #endif |
| OLD | NEW |