Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 1a275e9609a4a4e159633212cdd37fd46fc7e54f..6139a79980e2109107e8a9892c97641aae76c0f2 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -932,6 +932,18 @@ Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, |
} |
+Handle<JSObject> Factory::NewJSObjectWithAllocationSiteInfo( |
+ Handle<JSFunction> constructor, |
+ Handle<Object> payload) { |
+ CALL_HEAP_FUNCTION( |
+ isolate(), |
+ isolate()->heap()->AllocateJSObject(*constructor, |
+ NOT_TENURED, |
+ TRACK_ALLOCATION_SITE, |
+ &payload), JSObject); |
+} |
+ |
+ |
Handle<JSModule> Factory::NewJSModule(Handle<Context> context, |
Handle<ScopeInfo> scope_info) { |
CALL_HEAP_FUNCTION( |
@@ -968,6 +980,8 @@ Handle<JSArray> Factory::NewJSArray(int capacity, |
elements_kind, |
0, |
capacity, |
+ DONT_TRACK_ALLOCATION_SITE, |
+ NULL, |
INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE, |
pretenure), |
JSArray); |