Changeset 94627 in webkit for trunk/Source/JavaScriptCore/ChangeLog
- Timestamp:
- Sep 6, 2011, 7:13:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r94623 r94627 1 2011-09-06 Mark Hahnenberg <[email protected]> 2 3 Unzip initialization lists and constructors in JSCell hierarchy (5/7) 4 https://bugs.webkit.org/show_bug.cgi?id=67420 5 6 Reviewed by Geoffrey Garen. 7 8 Completed the fifth level of the refactoring to add finishCreation() 9 methods to all classes within the JSCell hierarchy with non-trivial 10 constructor bodies. 11 12 This primarily consists of pushing the calls to finishCreation() down 13 into the constructors of the subclasses of the second level of the hierarchy 14 as well as pulling the finishCreation() calls out into the class's corresponding 15 create() method if it has one. Doing both simultaneously allows us to 16 maintain the invariant that the finishCreation() method chain is called exactly 17 once during the creation of an object, since calling it any other number of 18 times (0, 2, or more) will cause an assertion failure. 19 20 * API/JSCallbackConstructor.cpp: 21 (JSC::JSCallbackConstructor::JSCallbackConstructor): 22 * API/JSCallbackConstructor.h: 23 (JSC::JSCallbackConstructor::create): 24 * API/JSCallbackFunction.cpp: 25 (JSC::JSCallbackFunction::JSCallbackFunction): 26 (JSC::JSCallbackFunction::finishCreation): 27 * API/JSCallbackFunction.h: 28 * JavaScriptCore.exp: 29 * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: 30 * debugger/DebuggerActivation.cpp: 31 * debugger/DebuggerActivation.h: 32 (JSC::DebuggerActivation::create): 33 * jsc.cpp: 34 (GlobalObject::finishCreation): 35 (GlobalObject::GlobalObject): 36 * runtime/ArrayConstructor.cpp: 37 (JSC::ArrayConstructor::ArrayConstructor): 38 (JSC::ArrayConstructor::finishCreation): 39 * runtime/ArrayConstructor.h: 40 * runtime/ArrayPrototype.cpp: 41 (JSC::ArrayPrototype::ArrayPrototype): 42 * runtime/ArrayPrototype.h: 43 (JSC::ArrayPrototype::create): 44 * runtime/BooleanConstructor.cpp: 45 (JSC::BooleanConstructor::BooleanConstructor): 46 (JSC::BooleanConstructor::finishCreation): 47 * runtime/BooleanConstructor.h: 48 * runtime/BooleanObject.cpp: 49 (JSC::BooleanObject::BooleanObject): 50 * runtime/BooleanObject.h: 51 (JSC::BooleanObject::create): 52 * runtime/BooleanPrototype.cpp: 53 (JSC::BooleanPrototype::BooleanPrototype): 54 (JSC::BooleanPrototype::finishCreation): 55 * runtime/BooleanPrototype.h: 56 * runtime/DateConstructor.cpp: 57 (JSC::DateConstructor::DateConstructor): 58 (JSC::DateConstructor::finishCreation): 59 * runtime/DateConstructor.h: 60 * runtime/DateInstance.cpp: 61 (JSC::DateInstance::DateInstance): 62 * runtime/DateInstance.h: 63 (JSC::DateInstance::create): 64 * runtime/DatePrototype.cpp: 65 (JSC::DatePrototype::DatePrototype): 66 (JSC::DatePrototype::finishCreation): 67 * runtime/DatePrototype.h: 68 * runtime/Error.cpp: 69 (JSC::StrictModeTypeErrorFunction::StrictModeTypeErrorFunction): 70 * runtime/ErrorConstructor.cpp: 71 (JSC::ErrorConstructor::ErrorConstructor): 72 (JSC::ErrorConstructor::finishCreation): 73 * runtime/ErrorConstructor.h: 74 * runtime/ErrorPrototype.cpp: 75 (JSC::ErrorPrototype::ErrorPrototype): 76 * runtime/ErrorPrototype.h: 77 (JSC::ErrorPrototype::create): 78 * runtime/FunctionConstructor.cpp: 79 (JSC::FunctionConstructor::FunctionConstructor): 80 (JSC::FunctionConstructor::finishCreation): 81 * runtime/FunctionConstructor.h: 82 * runtime/FunctionPrototype.cpp: 83 (JSC::FunctionPrototype::FunctionPrototype): 84 (JSC::FunctionPrototype::finishCreation): 85 * runtime/FunctionPrototype.h: 86 * runtime/InternalFunction.cpp: 87 (JSC::InternalFunction::InternalFunction): 88 * runtime/InternalFunction.h: 89 * runtime/JSActivation.cpp: 90 (JSC::JSActivation::JSActivation): 91 * runtime/JSActivation.h: 92 (JSC::JSActivation::create): 93 * runtime/JSGlobalObject.h: 94 (JSC::JSGlobalObject::create): 95 (JSC::JSGlobalObject::JSGlobalObject): 96 * runtime/JSONObject.cpp: 97 (JSC::JSONObject::JSONObject): 98 * runtime/JSONObject.h: 99 (JSC::JSONObject::create): 100 * runtime/JSStaticScopeObject.h: 101 (JSC::JSStaticScopeObject::create): 102 (JSC::JSStaticScopeObject::JSStaticScopeObject): 103 * runtime/JSString.cpp: 104 (JSC::StringObject::create): 105 * runtime/MathObject.cpp: 106 (JSC::MathObject::MathObject): 107 * runtime/MathObject.h: 108 (JSC::MathObject::create): 109 * runtime/NativeErrorConstructor.cpp: 110 (JSC::NativeErrorConstructor::NativeErrorConstructor): 111 * runtime/NativeErrorConstructor.h: 112 (JSC::NativeErrorConstructor::finishCreation): 113 * runtime/NativeErrorPrototype.cpp: 114 (JSC::NativeErrorPrototype::NativeErrorPrototype): 115 (JSC::NativeErrorPrototype::finishCreation): 116 * runtime/NativeErrorPrototype.h: 117 * runtime/NumberConstructor.cpp: 118 (JSC::NumberConstructor::NumberConstructor): 119 (JSC::NumberConstructor::finishCreation): 120 * runtime/NumberConstructor.h: 121 * runtime/NumberObject.cpp: 122 (JSC::NumberObject::NumberObject): 123 * runtime/NumberObject.h: 124 (JSC::NumberObject::create): 125 * runtime/NumberPrototype.cpp: 126 (JSC::NumberPrototype::NumberPrototype): 127 (JSC::NumberPrototype::finishCreation): 128 * runtime/NumberPrototype.h: 129 * runtime/ObjectConstructor.cpp: 130 (JSC::ObjectConstructor::ObjectConstructor): 131 (JSC::ObjectConstructor::finishCreation): 132 * runtime/ObjectConstructor.h: 133 * runtime/RegExpConstructor.cpp: 134 (JSC::RegExpConstructor::RegExpConstructor): 135 (JSC::RegExpConstructor::finishCreation): 136 (JSC::RegExpMatchesArray::RegExpMatchesArray): 137 * runtime/RegExpConstructor.h: 138 * runtime/RegExpMatchesArray.h: 139 (JSC::RegExpMatchesArray::create): 140 * runtime/RegExpObject.cpp: 141 (JSC::RegExpObject::RegExpObject): 142 * runtime/RegExpObject.h: 143 (JSC::RegExpObject::create): 144 * runtime/RegExpPrototype.cpp: 145 (JSC::RegExpPrototype::RegExpPrototype): 146 * runtime/StringConstructor.cpp: 147 (JSC::StringConstructor::StringConstructor): 148 (JSC::StringConstructor::finishCreation): 149 * runtime/StringConstructor.h: 150 * runtime/StringObject.cpp: 151 (JSC::StringObject::StringObject): 152 * runtime/StringObject.h: 153 (JSC::StringObject::create): 154 * runtime/StringObjectThatMasqueradesAsUndefined.h: 155 (JSC::StringObjectThatMasqueradesAsUndefined::StringObjectThatMasqueradesAsUndefined): 156 * runtime/StringPrototype.cpp: 157 (JSC::StringPrototype::StringPrototype): 158 (JSC::StringPrototype::finishCreation): 159 * runtime/StringPrototype.h: 160 1 161 2011-09-06 Filip Pizlo <[email protected]> 2 162
Note:
See TracChangeset
for help on using the changeset viewer.