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

Unified Diff: src/heap.h

Issue 6626043: Add an interface for an embedder to provide information about native (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 163eb04448328452f01b55a2edf0c5be98d6f816..79bfca5afd470a33ef9a391944c72ededf7a793a 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -1141,6 +1141,14 @@ class Heap : public AllStatic {
static GCTracer* tracer() { return tracer_; }
+ static void call_global_gc_prologue_callback() {
Vitaly Repeshko 2011/03/09 14:15:49 CallGlobalGCPrologueCallback()
mnaganov (inactive) 2011/03/09 15:26:32 Done.
+ if (global_gc_prologue_callback_ != NULL) global_gc_prologue_callback_();
+ }
+
+ static void call_global_gc_epilogue_callback() {
Vitaly Repeshko 2011/03/09 14:15:49 CallGlobalGCEpilogueCallback()
mnaganov (inactive) 2011/03/09 15:26:32 Done.
+ if (global_gc_epilogue_callback_ != NULL) global_gc_epilogue_callback_();
+ }
+
private:
static int reserved_semispace_size_;
static int max_semispace_size_;

Powered by Google App Engine
This is Rietveld 408576698