Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index dea23a44f3df6e8e23496002d3bf913b48bd6c03..aa815f3b18e2c789553ee57e2e74f6bde8dc7c14 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -677,6 +677,10 @@ i::Object** V8::CopyPersistent(i::Object** obj) { |
return result.location(); |
} |
+void V8::RegisterExternallyReferencedObject(i::Object** object, |
+ i::Isolate* isolate) { |
+ isolate->heap()->RegisterExternallyReferencedObject(object); |
+} |
void V8::MakeWeak(i::Object** object, void* parameter, |
WeakCallback weak_callback) { |
@@ -7174,6 +7178,10 @@ void V8::AddGCEpilogueCallback(GCCallback callback, GCType gc_type) { |
reinterpret_cast<v8::Isolate::GCCallback>(callback), gc_type, false); |
} |
+void Isolate::SetEmbedderHeapTracer(EmbedderHeapTracer* tracer) { |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
+ isolate->heap()->SetEmbedderHeapTracer(tracer); |
+} |
void Isolate::AddMemoryAllocationCallback(MemoryAllocationCallback callback, |
ObjectSpace space, |