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

Unified Diff: runtime/vm/object.h

Issue 13835014: - Use DISALLOW_ALLOCATION in Object class. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 21785)
+++ runtime/vm/object.h (working copy)
@@ -127,6 +127,11 @@
} \
} \
/* Disallow allocation, copy constructors and override super assignment. */ \
+ public: /* NOLINT */ \
+ void operator delete(void* pointer) { \
+ UNREACHABLE(); \
+ } \
+ private: /* NOLINT */ \
void* operator new(size_t size); \
object(const object& value); \
void operator=(Raw##super* value); \
@@ -525,9 +530,7 @@
friend class ExternalOneByteString;
friend class ExternalTwoByteString;
- // Disallow allocation.
- void* operator new(size_t size);
- // Disallow copy constructor.
+ DISALLOW_ALLOCATION();
DISALLOW_COPY_AND_ASSIGN(Object);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698