Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 60ea691d916ff071dfec04459bdccd7c34c7b0fd..5b196d3ca0aa12c03abb39cab0b220e8448d39bd 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -931,6 +931,13 @@ Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) { |
} |
+Handle<WeakCell> Factory::NewWeakCell(Handle<HeapObject> value) { |
+ AllowDeferredHandleDereference convert_to_cell; |
+ CALL_HEAP_FUNCTION(isolate(), isolate()->heap()->AllocateWeakCell(*value), |
+ WeakCell); |
+} |
+ |
+ |
Handle<AllocationSite> Factory::NewAllocationSite() { |
Handle<Map> map = allocation_site_map(); |
Handle<AllocationSite> site = New<AllocationSite>(map, OLD_POINTER_SPACE); |