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

Unified Diff: runtime/vm/allocation.h

Issue 2715463003: Add option to gen_snapshot for creating a Makefile describing a snapshot's dependencies. (Closed)
Patch Set: . Created 3 years, 10 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 | « runtime/platform/platform_headers.gypi ('k') | runtime/vm/dart_api_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « runtime/platform/platform_headers.gypi ('k') | runtime/vm/dart_api_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698