|
| 1 | +2014-07-30 Andreas Kling <akling@apple.com> |
| 2 | + |
| 3 | + Static hash tables no longer need to be coupled with a VM. |
| 4 | + <https://webkit.org/b/135421> |
| 5 | + |
| 6 | + Now that the static hash tables are using char** instead of StringImpl**, |
| 7 | + it's no longer necessary to make them per-VM. |
| 8 | + |
| 9 | + This patch removes the hook in ClassInfo for providing your own static |
| 10 | + hash table getter. Everyone now uses ClassInfo::staticPropHashTable. |
| 11 | + Most of this patch is tweaking ClassInfo construction sites to pass one |
| 12 | + less null pointer. |
| 13 | + |
| 14 | + Also simplified Lookup.h to stop requiring ExecState/VM to access the |
| 15 | + static hash tables. |
| 16 | + |
| 17 | + Reviewed by Geoffrey Garen. |
| 18 | + |
| 19 | + * API/JSAPIWrapperObject.mm: |
| 20 | + * API/JSCallbackConstructor.cpp: |
| 21 | + * API/JSCallbackFunction.cpp: |
| 22 | + * API/JSCallbackObject.cpp: |
| 23 | + * API/ObjCCallbackFunction.mm: |
| 24 | + * bytecode/UnlinkedCodeBlock.cpp: |
| 25 | + * create_hash_table: |
| 26 | + * debugger/DebuggerScope.cpp: |
| 27 | + * inspector/JSInjectedScriptHost.cpp: |
| 28 | + * inspector/JSInjectedScriptHostPrototype.cpp: |
| 29 | + * inspector/JSJavaScriptCallFrame.cpp: |
| 30 | + * inspector/JSJavaScriptCallFramePrototype.cpp: |
| 31 | + * interpreter/CallFrame.h: |
| 32 | + (JSC::ExecState::arrayConstructorTable): Deleted. |
| 33 | + (JSC::ExecState::arrayPrototypeTable): Deleted. |
| 34 | + (JSC::ExecState::booleanPrototypeTable): Deleted. |
| 35 | + (JSC::ExecState::dataViewTable): Deleted. |
| 36 | + (JSC::ExecState::dateTable): Deleted. |
| 37 | + (JSC::ExecState::dateConstructorTable): Deleted. |
| 38 | + (JSC::ExecState::errorPrototypeTable): Deleted. |
| 39 | + (JSC::ExecState::globalObjectTable): Deleted. |
| 40 | + (JSC::ExecState::jsonTable): Deleted. |
| 41 | + (JSC::ExecState::numberConstructorTable): Deleted. |
| 42 | + (JSC::ExecState::numberPrototypeTable): Deleted. |
| 43 | + (JSC::ExecState::objectConstructorTable): Deleted. |
| 44 | + (JSC::ExecState::privateNamePrototypeTable): Deleted. |
| 45 | + (JSC::ExecState::regExpTable): Deleted. |
| 46 | + (JSC::ExecState::regExpConstructorTable): Deleted. |
| 47 | + (JSC::ExecState::regExpPrototypeTable): Deleted. |
| 48 | + (JSC::ExecState::stringConstructorTable): Deleted. |
| 49 | + (JSC::ExecState::promisePrototypeTable): Deleted. |
| 50 | + (JSC::ExecState::promiseConstructorTable): Deleted. |
| 51 | + * jsc.cpp: |
| 52 | + * parser/Lexer.h: |
| 53 | + (JSC::Keywords::isKeyword): |
| 54 | + (JSC::Keywords::getKeyword): |
| 55 | + * runtime/Arguments.cpp: |
| 56 | + * runtime/ArgumentsIteratorConstructor.cpp: |
| 57 | + * runtime/ArgumentsIteratorPrototype.cpp: |
| 58 | + * runtime/ArrayBufferNeuteringWatchpoint.cpp: |
| 59 | + * runtime/ArrayConstructor.cpp: |
| 60 | + (JSC::ArrayConstructor::getOwnPropertySlot): |
| 61 | + * runtime/ArrayIteratorConstructor.cpp: |
| 62 | + * runtime/ArrayIteratorPrototype.cpp: |
| 63 | + * runtime/ArrayPrototype.cpp: |
| 64 | + (JSC::ArrayPrototype::getOwnPropertySlot): |
| 65 | + * runtime/BooleanConstructor.cpp: |
| 66 | + * runtime/BooleanObject.cpp: |
| 67 | + * runtime/BooleanPrototype.cpp: |
| 68 | + (JSC::BooleanPrototype::getOwnPropertySlot): |
| 69 | + * runtime/ClassInfo.h: |
| 70 | + (JSC::ClassInfo::hasStaticProperties): |
| 71 | + (JSC::ClassInfo::propHashTable): Deleted. |
| 72 | + * runtime/ConsolePrototype.cpp: |
| 73 | + * runtime/CustomGetterSetter.cpp: |
| 74 | + * runtime/DateConstructor.cpp: |
| 75 | + (JSC::DateConstructor::getOwnPropertySlot): |
| 76 | + * runtime/DateInstance.cpp: |
| 77 | + * runtime/DatePrototype.cpp: |
| 78 | + (JSC::DatePrototype::getOwnPropertySlot): |
| 79 | + * runtime/Error.cpp: |
| 80 | + * runtime/ErrorConstructor.cpp: |
| 81 | + * runtime/ErrorInstance.cpp: |
| 82 | + * runtime/ErrorPrototype.cpp: |
| 83 | + (JSC::ErrorPrototype::getOwnPropertySlot): |
| 84 | + * runtime/ExceptionHelpers.cpp: |
| 85 | + * runtime/Executable.cpp: |
| 86 | + * runtime/FunctionConstructor.cpp: |
| 87 | + * runtime/FunctionPrototype.cpp: |
| 88 | + * runtime/GetterSetter.cpp: |
| 89 | + * runtime/InternalFunction.cpp: |
| 90 | + * runtime/JSAPIValueWrapper.cpp: |
| 91 | + * runtime/JSActivation.cpp: |
| 92 | + * runtime/JSArgumentsIterator.cpp: |
| 93 | + * runtime/JSArray.cpp: |
| 94 | + * runtime/JSArrayBuffer.cpp: |
| 95 | + * runtime/JSArrayBufferConstructor.cpp: |
| 96 | + * runtime/JSArrayBufferPrototype.cpp: |
| 97 | + * runtime/JSArrayBufferView.cpp: |
| 98 | + * runtime/JSArrayIterator.cpp: |
| 99 | + * runtime/JSBoundFunction.cpp: |
| 100 | + * runtime/JSConsole.cpp: |
| 101 | + * runtime/JSDataView.cpp: |
| 102 | + * runtime/JSDataViewPrototype.cpp: |
| 103 | + (JSC::JSDataViewPrototype::getOwnPropertySlot): |
| 104 | + * runtime/JSFunction.cpp: |
| 105 | + * runtime/JSGlobalObject.cpp: |
| 106 | + (JSC::JSGlobalObject::getOwnPropertySlot): |
| 107 | + * runtime/JSMap.cpp: |
| 108 | + * runtime/JSMapIterator.cpp: |
| 109 | + * runtime/JSNameScope.cpp: |
| 110 | + * runtime/JSNotAnObject.cpp: |
| 111 | + * runtime/JSONObject.cpp: |
| 112 | + (JSC::JSONObject::getOwnPropertySlot): |
| 113 | + * runtime/JSObject.cpp: |
| 114 | + (JSC::getClassPropertyNames): |
| 115 | + (JSC::JSObject::put): |
| 116 | + (JSC::JSObject::deleteProperty): |
| 117 | + (JSC::JSObject::findPropertyHashEntry): |
| 118 | + (JSC::JSObject::reifyStaticFunctionsForDelete): |
| 119 | + * runtime/JSObject.h: |
| 120 | + * runtime/JSPromise.cpp: |
| 121 | + * runtime/JSPromiseConstructor.cpp: |
| 122 | + (JSC::JSPromiseConstructor::getOwnPropertySlot): |
| 123 | + * runtime/JSPromiseDeferred.cpp: |
| 124 | + * runtime/JSPromisePrototype.cpp: |
| 125 | + (JSC::JSPromisePrototype::getOwnPropertySlot): |
| 126 | + * runtime/JSPromiseReaction.cpp: |
| 127 | + * runtime/JSPropertyNameIterator.cpp: |
| 128 | + * runtime/JSProxy.cpp: |
| 129 | + * runtime/JSSet.cpp: |
| 130 | + * runtime/JSSetIterator.cpp: |
| 131 | + * runtime/JSString.cpp: |
| 132 | + * runtime/JSTypedArrayConstructors.cpp: |
| 133 | + * runtime/JSTypedArrayPrototypes.cpp: |
| 134 | + * runtime/JSTypedArrays.cpp: |
| 135 | + * runtime/JSVariableObject.cpp: |
| 136 | + * runtime/JSWeakMap.cpp: |
| 137 | + * runtime/JSWithScope.cpp: |
| 138 | + * runtime/Lookup.cpp: |
| 139 | + (JSC::HashTable::createTable): |
| 140 | + * runtime/Lookup.h: |
| 141 | + (JSC::HashTable::initializeIfNeeded): |
| 142 | + (JSC::HashTable::entry): |
| 143 | + (JSC::HashTable::begin): |
| 144 | + (JSC::HashTable::end): |
| 145 | + (JSC::getStaticPropertySlot): |
| 146 | + (JSC::getStaticFunctionSlot): |
| 147 | + (JSC::getStaticValueSlot): |
| 148 | + (JSC::lookupPut): |
| 149 | + * runtime/MapConstructor.cpp: |
| 150 | + * runtime/MapData.cpp: |
| 151 | + * runtime/MapIteratorConstructor.cpp: |
| 152 | + * runtime/MapIteratorPrototype.cpp: |
| 153 | + * runtime/MapPrototype.cpp: |
| 154 | + * runtime/MathObject.cpp: |
| 155 | + * runtime/NameConstructor.cpp: |
| 156 | + * runtime/NameInstance.cpp: |
| 157 | + * runtime/NamePrototype.cpp: |
| 158 | + (JSC::NamePrototype::getOwnPropertySlot): |
| 159 | + * runtime/NativeErrorConstructor.cpp: |
| 160 | + * runtime/NumberConstructor.cpp: |
| 161 | + (JSC::NumberConstructor::getOwnPropertySlot): |
| 162 | + * runtime/NumberObject.cpp: |
| 163 | + * runtime/NumberPrototype.cpp: |
| 164 | + (JSC::NumberPrototype::getOwnPropertySlot): |
| 165 | + * runtime/ObjectConstructor.cpp: |
| 166 | + (JSC::ObjectConstructor::getOwnPropertySlot): |
| 167 | + * runtime/ObjectPrototype.cpp: |
| 168 | + * runtime/PropertyTable.cpp: |
| 169 | + * runtime/RegExp.cpp: |
| 170 | + * runtime/RegExpConstructor.cpp: |
| 171 | + (JSC::RegExpConstructor::getOwnPropertySlot): |
| 172 | + * runtime/RegExpMatchesArray.cpp: |
| 173 | + * runtime/RegExpObject.cpp: |
| 174 | + (JSC::RegExpObject::getOwnPropertySlot): |
| 175 | + * runtime/RegExpPrototype.cpp: |
| 176 | + (JSC::RegExpPrototype::getOwnPropertySlot): |
| 177 | + * runtime/SetConstructor.cpp: |
| 178 | + * runtime/SetIteratorConstructor.cpp: |
| 179 | + * runtime/SetIteratorPrototype.cpp: |
| 180 | + * runtime/SetPrototype.cpp: |
| 181 | + * runtime/SparseArrayValueMap.cpp: |
| 182 | + * runtime/StrictEvalActivation.cpp: |
| 183 | + * runtime/StringConstructor.cpp: |
| 184 | + (JSC::StringConstructor::getOwnPropertySlot): |
| 185 | + * runtime/StringObject.cpp: |
| 186 | + * runtime/StringPrototype.cpp: |
| 187 | + * runtime/Structure.cpp: |
| 188 | + (JSC::Structure::Structure): |
| 189 | + (JSC::Structure::freezeTransition): |
| 190 | + (JSC::ClassInfo::hasStaticSetterOrReadonlyProperties): |
| 191 | + * runtime/StructureChain.cpp: |
| 192 | + * runtime/StructureRareData.cpp: |
| 193 | + * runtime/SymbolTable.cpp: |
| 194 | + * runtime/VM.cpp: |
| 195 | + (JSC::VM::VM): |
| 196 | + (JSC::VM::~VM): |
| 197 | + * runtime/VM.h: |
| 198 | + * runtime/WeakMapConstructor.cpp: |
| 199 | + * runtime/WeakMapData.cpp: |
| 200 | + * runtime/WeakMapPrototype.cpp: |
| 201 | + * testRegExp.cpp: |
| 202 | + |
1 | 203 | 2014-07-29 Brent Fulgham <bfulgham@apple.com> |
2 | 204 |
|
3 | 205 | [Win] Modify version numbering scheme to support 5-tuple versions |
|
0 commit comments