| 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 \ | 10 #define WTF_MAKE_FAST_ALLOCATED \ |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 operator T*() const { return 0; } | 132 operator T*() const { return 0; } |
| 133 T* operator->() { return 0; } | 133 T* operator->() { return 0; } |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } | 136 } |
| 137 | 137 |
| 138 namespace blink { | 138 namespace blink { |
| 139 | 139 |
| 140 using namespace WTF; | 140 using namespace WTF; |
| 141 | 141 |
| 142 #define DISALLOW_ALLOCATION() \ | 142 #define DISALLOW_NEW() \ |
| 143 private: \ | 143 private: \ |
| 144 void* operator new(size_t) = delete; \ | 144 void* operator new(size_t) = delete; \ |
| 145 void* operator new(size_t, void*) = delete; | 145 void* operator new(size_t, void*) = delete; |
| 146 | 146 |
| 147 #define STACK_ALLOCATED() \ | 147 #define STACK_ALLOCATED() \ |
| 148 private: \ | 148 private: \ |
| 149 __attribute__((annotate("blink_stack_allocated"))) \ | 149 __attribute__((annotate("blink_stack_allocated"))) \ |
| 150 void* operator new(size_t) = delete; \ | 150 void* operator new(size_t) = delete; \ |
| 151 void* operator new(size_t, void*) = delete; | 151 void* operator new(size_t, void*) = delete; |
| 152 | 152 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 namespace WTF { | 286 namespace WTF { |
| 287 | 287 |
| 288 template<typename T> | 288 template<typename T> |
| 289 struct VectorTraits<blink::Member<T> > { | 289 struct VectorTraits<blink::Member<T> > { |
| 290 static const bool needsDestruction = false; | 290 static const bool needsDestruction = false; |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 } | 293 } |
| 294 | 294 |
| 295 #endif | 295 #endif |
| OLD | NEW |