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

Side by Side Diff: tools/clang/blink_gc_plugin/tests/heap/stubs.h

Issue 2128773003: Rename DISALLOW_ALLOCATION to DISALLOW_NEW (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698