Index: src/factory.h |
=================================================================== |
--- src/factory.h (revision 4210) |
+++ src/factory.h (working copy) |
@@ -218,8 +218,13 @@ |
static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
- static Handle<JSFunction> NewFunctionFromBoilerplate( |
- Handle<JSFunction> boilerplate, |
+ static Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( |
+ Handle<SharedFunctionInfo> function_info, |
+ Handle<Map> function_map, |
+ PretenureFlag pretenure); |
+ |
+ static Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
+ Handle<SharedFunctionInfo> function_info, |
Handle<Context> context, |
PretenureFlag pretenure = TENURED); |
@@ -273,12 +278,6 @@ |
Handle<Code> code, |
bool force_initial_map); |
- static Handle<JSFunction> NewFunctionBoilerplate(Handle<String> name, |
- int number_of_literals, |
- Handle<Code> code); |
- |
- static Handle<JSFunction> NewFunctionBoilerplate(Handle<String> name); |
- |
static Handle<JSFunction> NewFunction(Handle<Map> function_map, |
Handle<SharedFunctionInfo> shared, Handle<Object> prototype); |
@@ -337,6 +336,8 @@ |
return Handle<String>(&Heap::hidden_symbol_); |
} |
+ static Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
+ Handle<String> name, int number_of_literals, Handle<Code> code); |
static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
static Handle<NumberDictionary> DictionaryAtNumberPut( |
@@ -377,11 +378,6 @@ |
Handle<DescriptorArray> array, |
Handle<Object> descriptors); |
- static Handle<JSFunction> BaseNewFunctionFromBoilerplate( |
- Handle<JSFunction> boilerplate, |
- Handle<Map> function_map, |
- PretenureFlag pretenure); |
- |
// Create a new map cache. |
static Handle<MapCache> NewMapCache(int at_least_space_for); |