Index: runtime/vm/allocation.h |
diff --git a/runtime/vm/allocation.h b/runtime/vm/allocation.h |
index 16c70752c9785e28c3e39df232bbe4c27ec3985c..baa99f1d524ebf40867d510a877e5e3aba330a16 100644 |
--- a/runtime/vm/allocation.h |
+++ b/runtime/vm/allocation.h |
@@ -5,6 +5,7 @@ |
#ifndef RUNTIME_VM_ALLOCATION_H_ |
#define RUNTIME_VM_ALLOCATION_H_ |
+#include "platform/allocation.h" |
#include "platform/assert.h" |
#include "vm/base_isolate.h" |
#include "vm/globals.h" |
@@ -15,21 +16,6 @@ namespace dart { |
class Isolate; |
class Thread; |
-// Stack allocated objects subclass from this base class. Objects of this type |
-// cannot be allocated on either the C or object heaps. Destructors for objects |
-// of this type will not be run unless the stack is unwound through normal |
-// program control flow. |
-class ValueObject { |
- public: |
- ValueObject() {} |
- ~ValueObject() {} |
- |
- private: |
- DISALLOW_ALLOCATION(); |
- DISALLOW_COPY_AND_ASSIGN(ValueObject); |
-}; |
- |
- |
// Stack resources subclass from this base class. The VM will ensure that the |
// destructors of these objects are called before the stack is unwound past the |
// objects location on the stack. Use stack resource objects if objects |
@@ -65,15 +51,6 @@ class StackResource { |
}; |
-// Static allocated classes only contain static members and can never |
-// be instantiated in the heap or on the stack. |
-class AllStatic { |
- private: |
- DISALLOW_ALLOCATION(); |
- DISALLOW_IMPLICIT_CONSTRUCTORS(AllStatic); |
-}; |
- |
- |
// Zone allocated objects cannot be individually deallocated, but have |
// to rely on the destructor of Zone which is called when the Zone |
// goes out of scope to reclaim memory. |