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

Unified Diff: runtime/vm/isolate.h

Issue 9605033: Implement a garbage collection prologue and epilogue callback mechanism. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix grammar 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index c896a564c8587b4d4f0ad52993d10d4a2b455f20..ea2b9b571913a4c230bf092595354c2a14aedc20 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -8,6 +8,7 @@
#include "include/dart_api.h"
#include "platform/assert.h"
#include "platform/thread.h"
+#include "vm/gc_callbacks.h"
#include "vm/store_buffer.h"
#include "vm/timer.h"
@@ -232,6 +233,14 @@ class Isolate {
static void SetInterruptCallback(Dart_IsolateInterruptCallback cback);
static Dart_IsolateInterruptCallback InterruptCallback();
+ GcPrologueCallbacks& gc_prologue_callbacks() {
+ return gc_prologue_callbacks_;
+ }
+
+ GcEpilogueCallbacks& gc_epilogue_callbacks() {
+ return gc_epilogue_callbacks_;
+ }
+
private:
Isolate();
@@ -273,6 +282,8 @@ class Isolate {
uword stack_limit_;
uword saved_stack_limit_;
MessageHandler* message_handler_;
+ GcPrologueCallbacks gc_prologue_callbacks_;
+ GcEpilogueCallbacks gc_epilogue_callbacks_;
static Dart_IsolateCreateCallback create_callback_;
static Dart_IsolateInterruptCallback interrupt_callback_;
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698