| Index: src/factory.h
|
| diff --git a/src/factory.h b/src/factory.h
|
| index da161445b124baf2faf874d34ed6bf3e7de280d5..ac4cb82ad8bb5d8dcefc5bafc0ae241d9321703c 100644
|
| --- a/src/factory.h
|
| +++ b/src/factory.h
|
| @@ -257,7 +257,9 @@ class Factory final {
|
| Handle<ScriptContextTable> NewScriptContextTable();
|
|
|
| // Create a module context.
|
| - Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info);
|
| + Handle<Context> NewModuleContext(Handle<JSModule> module,
|
| + Handle<JSFunction> function,
|
| + Handle<ScopeInfo> scope_info);
|
|
|
| // Create a function context.
|
| Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function);
|
| @@ -472,6 +474,8 @@ class Factory final {
|
|
|
| Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function);
|
|
|
| + Handle<JSModule> NewJSModule();
|
| +
|
| Handle<JSArrayBuffer> NewJSArrayBuffer(
|
| SharedFlag shared = SharedFlag::kNotShared,
|
| PretenureFlag pretenure = NOT_TENURED);
|
| @@ -556,6 +560,7 @@ class Factory final {
|
| // Create a serialized scope info.
|
| Handle<ScopeInfo> NewScopeInfo(int length);
|
|
|
| + Handle<ModuleInfoEntry> NewModuleInfoEntry();
|
| Handle<ModuleInfo> NewModuleInfo();
|
|
|
| // Create an External object for V8's external API.
|
|
|