Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index 26c73062f8ad05b8610bdb2c0d19779aeceaa273..a79aeede9c57e7b8b46e7e6b7f777714448804f3 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -502,6 +502,10 @@ class Factory final { |
Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); |
+ Handle<JSFunction> NewFunction(Handle<Map> map, |
+ Handle<SharedFunctionInfo> info, |
+ Handle<Object> context_or_undefined, |
+ PretenureFlag pretenure = TENURED); |
Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
Handle<Object> prototype, |
bool is_strict = false); |
@@ -512,7 +516,7 @@ class Factory final { |
Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, |
- Handle<Context> context, PretenureFlag pretenure = TENURED); |
+ Handle<Object> context_or_undefined, PretenureFlag pretenure = TENURED); |
Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
Handle<SharedFunctionInfo> function_info, Handle<Context> context, |
@@ -709,12 +713,6 @@ class Factory final { |
// Update the cache with a new number-string pair. |
void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
- // Creates a function initialized with a shared part. |
- Handle<JSFunction> NewFunction(Handle<Map> map, |
- Handle<SharedFunctionInfo> info, |
- Handle<Context> context, |
- PretenureFlag pretenure = TENURED); |
- |
// Create a JSArray with no elements and no length. |
Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
PretenureFlag pretenure = NOT_TENURED); |