| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 64567a821422687e20fcda4cb8ee4ee775216b5b..57574d1685234353cccfdc7ddfb03f084c206990 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1327,6 +1327,17 @@ 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()->AllocateJSObject(*constructor, NOT_TENURED, *site),
|
| + JSObject);
|
| +}
|
| +
|
| +
|
| Handle<JSModule> Factory::NewJSModule(Handle<Context> context,
|
| Handle<ScopeInfo> scope_info) {
|
| CALL_HEAP_FUNCTION(
|
|
|