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

Unified Diff: runtime/vm/heap.h

Issue 9655011: Implement prologue weak persistent handles. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final revision Created 8 years, 9 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/vm/gc_marker.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index 1e6051b8bfbb0f73e81a87f833345406ad898581..37769b98cce0efccbec0e516f51b1737f6657472 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -32,6 +32,11 @@ class Heap {
kExecutable
};
+ enum ApiCallbacks {
+ kIgnoreApiCallbacks,
+ kInvokeApiCallbacks
+ };
+
// Default allocation sizes in MB for the old gen and code heaps.
static const intptr_t kHeapSizeInMB = 512;
static const intptr_t kCodeHeapSizeInMB = 8;
@@ -80,6 +85,7 @@ class Heap {
void IterateCodePointers(ObjectPointerVisitor* visitor);
void CollectGarbage(Space space);
+ void CollectGarbage(Space space, ApiCallbacks api_callbacks);
void CollectAllGarbage();
// Accessors for inlined allocation in generated code.
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698