Changeset 128265 in webkit for trunk/Source/JavaScriptCore/runtime/JSFunction.h
- Timestamp:
- Sep 11, 2012, 11:14:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSFunction.h
r127202 r128265 60 60 static JSFunction* create(ExecState* exec, FunctionExecutable* executable, JSScope* scope) 61 61 { 62 JSFunction* function = new (NotNull, allocateCell<JSFunction>(*exec->heap())) JSFunction(exec, executable, scope); 62 JSGlobalData& globalData = exec->globalData(); 63 JSFunction* function = new (NotNull, allocateCell<JSFunction>(globalData.heap)) JSFunction(globalData, executable, scope); 63 64 ASSERT(function->structure()->globalObject()); 64 function->finishCreation( exec, executable, scope);65 function->finishCreation(globalData); 65 66 return function; 66 67 } 67 68 68 JS_EXPORT_PRIVATE const String&name(ExecState*);69 JS_EXPORT_PRIVATE constString displayName(ExecState*);69 JS_EXPORT_PRIVATE String name(ExecState*); 70 JS_EXPORT_PRIVATE String displayName(ExecState*); 70 71 const String calculatedDisplayName(ExecState*); 71 72 … … 138 139 139 140 JS_EXPORT_PRIVATE JSFunction(ExecState*, JSGlobalObject*, Structure*); 140 JSFunction( ExecState*, FunctionExecutable*, JSScope*);141 JSFunction(JSGlobalData&, FunctionExecutable*, JSScope*); 141 142 142 143 void finishCreation(ExecState*, NativeExecutable*, int length, const String& name); 143 void finishCreation(ExecState*, FunctionExecutable*, JSScope*);144 using Base::finishCreation; 144 145 145 146 Structure* cacheInheritorID(ExecState*); … … 164 165 static JSValue callerGetter(ExecState*, JSValue, PropertyName); 165 166 static JSValue lengthGetter(ExecState*, JSValue, PropertyName); 167 static JSValue nameGetter(ExecState*, JSValue, PropertyName); 166 168 167 169 WriteBarrier<ExecutableBase> m_executable;
Note:
See TracChangeset
for help on using the changeset viewer.