| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 85a37ad217d03ca4a47261a390937b1872a45acf..462af590d2f02ab592062ffe5f943e2cf31fc812 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -292,6 +292,15 @@ Handle<Context> Factory::NewNativeContext() {
|
| }
|
|
|
|
|
| +Handle<Context> Factory::NewGlobalContext(Handle<JSFunction> function,
|
| + Handle<ScopeInfo> scope_info) {
|
| + CALL_HEAP_FUNCTION(
|
| + isolate(),
|
| + isolate()->heap()->AllocateGlobalContext(*function, *scope_info),
|
| + Context);
|
| +}
|
| +
|
| +
|
| Handle<Context> Factory::NewModuleContext(Handle<ScopeInfo> scope_info) {
|
| CALL_HEAP_FUNCTION(
|
| isolate(),
|
|
|