Changeset 94701 in webkit for trunk/Source/JavaScriptCore/runtime/InternalFunction.cpp
- Timestamp:
- Sep 7, 2011, 12:40:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/InternalFunction.cpp
r94644 r94701 35 35 ASSERT_CLASS_FITS_IN_CELL(InternalFunction); 36 36 37 const ClassInfo InternalFunction::s_info = { "Function", &JS ObjectWithGlobalObject::s_info, 0, 0 };37 const ClassInfo InternalFunction::s_info = { "Function", &JSNonFinalObject::s_info, 0, 0 }; 38 38 39 39 InternalFunction::InternalFunction(VPtrStealingHackType) 40 : JS ObjectWithGlobalObject(VPtrStealingHack)40 : JSNonFinalObject(VPtrStealingHack) 41 41 { 42 42 } 43 43 44 InternalFunction::InternalFunction(JSGlobalData* globalData, JSGlobalObject* globalObject, Structure* structure, const Identifier& name)45 : JS ObjectWithGlobalObject(globalObject, structure)44 InternalFunction::InternalFunction(JSGlobalData* globalData, JSGlobalObject*, Structure* structure, const Identifier& name) 45 : JSNonFinalObject(*globalData, structure) 46 46 { 47 finishCreation(*globalData, globalObject,name);47 finishCreation(*globalData, name); 48 48 } 49 49 50 void InternalFunction::finishCreation(JSGlobalData& globalData, JSGlobalObject* globalObject,const Identifier& name)50 void InternalFunction::finishCreation(JSGlobalData& globalData, const Identifier& name) 51 51 { 52 Base::finishCreation(globalData , globalObject);52 Base::finishCreation(globalData); 53 53 ASSERT(inherits(&s_info)); 54 54 putDirect(globalData, globalData.propertyNames->name, jsString(&globalData, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
Note:
See TracChangeset
for help on using the changeset viewer.