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

Unified Diff: src/heap/heap.h

Issue 1815153002: Introduce EmbedderHeapTracer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix formatting Created 4 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
« include/v8.h ('K') | « src/api.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 8af1e3844aba9ec14264d7c11e93b100a1602ace..61ec22874d8490e14edada2b1fe4065be28bfabf 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -913,6 +913,7 @@ class Heap {
// ===========================================================================
GCTracer* tracer() { return tracer_; }
+ EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; }
PromotionQueue* promotion_queue() { return &promotion_queue_; }
@@ -1310,6 +1311,9 @@ class Heap {
void CallGCPrologueCallbacks(GCType gc_type, GCCallbackFlags flags);
void CallGCEpilogueCallbacks(GCType gc_type, GCCallbackFlags flags);
+ void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer);
+ void UnsetEmbedderHeapTracer();
+
// ===========================================================================
// Allocation methods. =======================================================
// ===========================================================================
@@ -2077,8 +2081,8 @@ class Heap {
Object* encountered_transition_arrays_;
- List<GCCallbackPair> gc_epilogue_callbacks_;
List<GCCallbackPair> gc_prologue_callbacks_;
+ List<GCCallbackPair> gc_epilogue_callbacks_;
// Total RegExp code ever generated
double total_regexp_code_generated_;
@@ -2086,6 +2090,7 @@ class Heap {
int deferred_counters_[v8::Isolate::kUseCounterFeatureCount];
GCTracer* tracer_;
+ EmbedderHeapTracer* embedder_heap_tracer_;
int high_survival_rate_period_length_;
intptr_t promoted_objects_size_;
« include/v8.h ('K') | « src/api.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698