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

Unified Diff: runtime/vm/isolate.h

Issue 197963002: Remove the ability to allow multiple gc prologue and gc epilogue callbacks (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
===================================================================
--- runtime/vm/isolate.h (revision 33620)
+++ runtime/vm/isolate.h (working copy)
@@ -10,7 +10,6 @@
#include "platform/thread.h"
#include "vm/base_isolate.h"
#include "vm/class_table.h"
-#include "vm/gc_callbacks.h"
#include "vm/handles.h"
#include "vm/megamorphic_cache_table.h"
#include "vm/random.h"
@@ -306,14 +305,22 @@
Simulator* simulator() const { return simulator_; }
void set_simulator(Simulator* value) { simulator_ = value; }
- GcPrologueCallbacks& gc_prologue_callbacks() {
- return gc_prologue_callbacks_;
+ Dart_GcPrologueCallback gc_prologue_callback() const {
+ return gc_prologue_callback_;
}
- GcEpilogueCallbacks& gc_epilogue_callbacks() {
- return gc_epilogue_callbacks_;
+ void set_gc_prologue_callback(Dart_GcPrologueCallback callback) {
+ gc_prologue_callback_ = callback;
}
+ Dart_GcEpilogueCallback gc_epilogue_callback() const {
+ return gc_epilogue_callback_;
+ }
+
+ void set_gc_epilogue_callback(Dart_GcEpilogueCallback callback) {
+ gc_epilogue_callback_ = callback;
+ }
+
static void SetCreateCallback(Dart_IsolateCreateCallback cb) {
create_callback_ = cb;
}
@@ -499,8 +506,8 @@
MessageHandler* message_handler_;
IsolateSpawnState* spawn_state_;
bool is_runnable_;
- GcPrologueCallbacks gc_prologue_callbacks_;
- GcEpilogueCallbacks gc_epilogue_callbacks_;
+ Dart_GcPrologueCallback gc_prologue_callback_;
+ Dart_GcEpilogueCallback gc_epilogue_callback_;
intptr_t defer_finalization_count_;
DeoptContext* deopt_context_;
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698