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

Unified Diff: src/heap/mark-compact.h

Issue 1844413002: Use EmbedderHeapTracer instead of object grouping when trace_embedder_heap flag is set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporated Jochen's wonderful comments 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
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index cd207bcda27ba792ec2291abead68006c86932be..00ddefa78e7bc5678c40317176e54eb3b4eb3dcf 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -577,6 +577,12 @@ class MarkCompactCollector {
return nullptr;
}
+ std::vector<std::pair<void*, void*>>& wrappers_to_trace() {
+ return wrappers_to_trace_;
+ }
+
+ bool UsingEmbedderHeapTracer() const;
+
private:
class EvacuateNewSpaceVisitor;
class EvacuateOldSpaceVisitor;
@@ -813,6 +819,8 @@ class MarkCompactCollector {
base::VirtualMemory* marking_deque_memory_;
size_t marking_deque_memory_committed_;
MarkingDeque marking_deque_;
+ std::vector<std::pair<void*, void*>> wrappers_to_trace_;
+
CodeFlusher* code_flusher_;
bool have_code_to_deoptimize_;

Powered by Google App Engine
This is Rietveld 408576698