| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index aead7be0cc934efc7af442b242b6fc72a126b7de..11ee377a068c6c249046d8e0829875b0ff79b025 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1315,6 +1315,18 @@ Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor,
|
| }
|
|
|
|
|
| +Handle<JSObject> Factory::NewJSObjectWithMemento(
|
| + Handle<JSFunction> constructor,
|
| + Handle<AllocationSite> site) {
|
| + JSFunction::EnsureHasInitialMap(constructor);
|
| + CALL_HEAP_FUNCTION(
|
| + isolate(),
|
| + isolate()->heap()->AllocateJSObjectWithAllocationSite(
|
| + *constructor, site),
|
| + JSObject);
|
| +}
|
| +
|
| +
|
| Handle<JSModule> Factory::NewJSModule(Handle<Context> context,
|
| Handle<ScopeInfo> scope_info) {
|
| CALL_HEAP_FUNCTION(
|
|
|