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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 198103004: Remove Dart_AddGcPrologueCallback and Dart_RemoveGcPrologueCallback from the Dart API. (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/include/dart_api.h ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
===================================================================
--- runtime/vm/dart_api_impl.cc (revision 33630)
+++ runtime/vm/dart_api_impl.cc (working copy)
@@ -764,68 +764,6 @@
// --- Garbage Collection Callbacks --
-DART_EXPORT Dart_Handle Dart_AddGcPrologueCallback(
- Dart_GcPrologueCallback callback) {
- Isolate* isolate = Isolate::Current();
- CHECK_ISOLATE(isolate);
- if (isolate->gc_prologue_callback() != NULL) {
- return Api::NewError(
- "%s permits only one gc prologue callback to be registered, please "
- "remove the existing callback using Dart_RemoveGcPrologueCallback "
- "and then add this callback",
- CURRENT_FUNC);
- }
- isolate->set_gc_prologue_callback(callback);
- return Api::Success();
-}
-
-
-DART_EXPORT Dart_Handle Dart_RemoveGcPrologueCallback(
- Dart_GcPrologueCallback callback) {
- Isolate* isolate = Isolate::Current();
- CHECK_ISOLATE(isolate);
- if (isolate->gc_prologue_callback() != callback) {
- return Api::NewError(
- "%s expects 'callback' to be the currently registered gc prologue "
- "callback.",
- CURRENT_FUNC);
- }
- isolate->set_gc_prologue_callback(NULL);
- return Api::Success();
-}
-
-
-DART_EXPORT Dart_Handle Dart_AddGcEpilogueCallback(
- Dart_GcEpilogueCallback callback) {
- Isolate* isolate = Isolate::Current();
- CHECK_ISOLATE(isolate);
- if (isolate->gc_epilogue_callback() != NULL) {
- return Api::NewError(
- "%s permits only one gc epilogue callback to be registered, please "
- "remove the existing callback using Dart_RemoveGcEpilogueCallback "
- "and then add this callback",
- CURRENT_FUNC);
- }
- isolate->set_gc_epilogue_callback(callback);
- return Api::Success();
-}
-
-
-DART_EXPORT Dart_Handle Dart_RemoveGcEpilogueCallback(
- Dart_GcEpilogueCallback callback) {
- Isolate* isolate = Isolate::Current();
- CHECK_ISOLATE(isolate);
- if (isolate->gc_epilogue_callback() != callback) {
- return Api::NewError(
- "%s expects 'callback' to be the currently registered gc epilogue "
- " callback.",
- CURRENT_FUNC);
- }
- isolate->set_gc_epilogue_callback(NULL);
- return Api::Success();
-}
-
-
DART_EXPORT Dart_Handle Dart_SetGcCallbacks(
Dart_GcPrologueCallback prologue_callback,
Dart_GcEpilogueCallback epilogue_callback) {
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698