Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index aca86484bd01b8a1dc372ac0fac8a175dd2b266c..4e1d7494dcf66ebcc39855a3eafcf23e5b4f82f2 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -116,6 +116,7 @@ Heap::Heap() |
inline_allocation_disabled_(false), |
total_regexp_code_generated_(0), |
tracer_(nullptr), |
+ embedder_heap_tracer_(nullptr), |
high_survival_rate_period_length_(0), |
promoted_objects_size_(0), |
promotion_ratio_(0), |
@@ -5420,6 +5421,11 @@ void Heap::NotifyDeserializationComplete() { |
#endif // DEBUG |
} |
+void Heap::AddObjectToMarkingDeque(Object** object) { |
+ DCHECK(incremental_marking()->IsMarking()); |
+ HeapObject* heap_object = HeapObject::cast(*object); |
+ IncrementalMarking::MarkObject(isolate()->heap(), heap_object); |
jochen (gone - plz use gerrit)
2016/03/30 16:46:17
isolate()->heap() === this
Marcel Hlopko
2016/03/30 18:51:12
In the meantime I fixed a bug, ptal at new version
|
+} |
void Heap::TearDown() { |
#ifdef VERIFY_HEAP |
@@ -5585,6 +5591,10 @@ void Heap::RemoveGCEpilogueCallback(v8::Isolate::GCCallback callback) { |
UNREACHABLE(); |
} |
+void Heap::SetEmbedderHeapTracer(EmbedderHeapTracer* tracer) { |
+ DCHECK(tracer != nullptr); |
jochen (gone - plz use gerrit)
2016/03/30 16:46:17
DCHECK_NOT_NULL()
I'd also add CHECK_NULL(embedde
Marcel Hlopko
2016/03/30 18:51:12
Done.
|
+ embedder_heap_tracer_ = tracer; |
+} |
// TODO(ishell): Find a better place for this. |
void Heap::AddWeakObjectToCodeDependency(Handle<HeapObject> obj, |