OSDN Git Service

remove unused JSC::ClassInfo::staticPropHashTable member
authorIvailo Monev <xakepa10@gmail.com>
Fri, 7 Aug 2020 21:14:12 +0000 (00:14 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 7 Aug 2020 21:14:12 +0000 (00:14 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
31 files changed:
src/3rdparty/javascriptcore/API/JSCallbackConstructor.cpp
src/3rdparty/javascriptcore/API/JSCallbackFunction.cpp
src/3rdparty/javascriptcore/runtime/Arguments.cpp
src/3rdparty/javascriptcore/runtime/ArrayPrototype.cpp
src/3rdparty/javascriptcore/runtime/BooleanObject.cpp
src/3rdparty/javascriptcore/runtime/ClassInfo.h
src/3rdparty/javascriptcore/runtime/DateInstance.cpp
src/3rdparty/javascriptcore/runtime/DatePrototype.cpp
src/3rdparty/javascriptcore/runtime/ErrorInstance.cpp
src/3rdparty/javascriptcore/runtime/InternalFunction.cpp
src/3rdparty/javascriptcore/runtime/JSActivation.cpp
src/3rdparty/javascriptcore/runtime/JSArray.cpp
src/3rdparty/javascriptcore/runtime/JSByteArray.cpp
src/3rdparty/javascriptcore/runtime/JSFunction.cpp
src/3rdparty/javascriptcore/runtime/JSGlobalObject.cpp
src/3rdparty/javascriptcore/runtime/JSONObject.cpp
src/3rdparty/javascriptcore/runtime/JSObject.cpp
src/3rdparty/javascriptcore/runtime/MathObject.cpp
src/3rdparty/javascriptcore/runtime/NativeErrorConstructor.cpp
src/3rdparty/javascriptcore/runtime/NumberConstructor.cpp
src/3rdparty/javascriptcore/runtime/NumberObject.cpp
src/3rdparty/javascriptcore/runtime/RegExpConstructor.cpp
src/3rdparty/javascriptcore/runtime/RegExpObject.cpp
src/3rdparty/javascriptcore/runtime/RegExpPrototype.cpp
src/3rdparty/javascriptcore/runtime/StringObject.cpp
src/3rdparty/javascriptcore/runtime/StringPrototype.cpp
src/script/bridge/qscriptactivationobject.cpp
src/script/bridge/qscriptfunction.cpp
src/script/bridge/qscriptobject.cpp
src/script/bridge/qscriptqobject.cpp
src/script/bridge/qscriptstaticscopeobject.cpp

index 935b500..eaed719 100644 (file)
@@ -34,7 +34,7 @@
 
 namespace JSC {
 
-const ClassInfo JSCallbackConstructor::info = { "CallbackConstructor", 0, 0, 0 };
+const ClassInfo JSCallbackConstructor::info = { "CallbackConstructor", 0, 0 };
 
 JSCallbackConstructor::JSCallbackConstructor(NonNullPassRefPtr<Structure> structure, JSClassRef jsClass, JSObjectCallAsConstructorCallback callback)
     : JSObject(structure)
index c044661..33cb2d9 100644 (file)
@@ -39,7 +39,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(JSCallbackFunction);
 
-const ClassInfo JSCallbackFunction::info = { "CallbackFunction", &InternalFunction::info, 0, 0 };
+const ClassInfo JSCallbackFunction::info = { "CallbackFunction", &InternalFunction::info, 0 };
 
 JSCallbackFunction::JSCallbackFunction(ExecState* exec, JSObjectCallAsFunctionCallback callback, const Identifier& name)
     : InternalFunction(&exec->globalData(), exec->lexicalGlobalObject()->callbackFunctionStructure(), name)
index 9bb3388..e2a9905 100644 (file)
@@ -35,7 +35,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(Arguments);
 
-const ClassInfo Arguments::info = { "Arguments", 0, 0, 0 };
+const ClassInfo Arguments::info = { "Arguments", 0, 0 };
 
 Arguments::~Arguments()
 {
index b51b571..218cfb1 100644 (file)
@@ -78,7 +78,7 @@ static inline bool isNumericCompareFunction(ExecState* exec, CallType callType,
 
 // ------------------------------ ArrayPrototype ----------------------------
 
-const ClassInfo ArrayPrototype::info = {"Array", &JSArray::info, 0, ExecState::arrayTable};
+const ClassInfo ArrayPrototype::info = { "Array", &JSArray::info, ExecState::arrayTable };
 
 /* Source for ArrayPrototype.lut.h
 @begin arrayTable 16
index d989da7..81063bd 100644 (file)
@@ -25,7 +25,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(BooleanObject);
 
-const ClassInfo BooleanObject::info = { "Boolean", 0, 0, 0 };
+const ClassInfo BooleanObject::info = { "Boolean", 0, 0 };
 
 BooleanObject::BooleanObject(NonNullPassRefPtr<Structure> structure)
     : JSWrapperObject(structure)
index acec4e7..4902518 100644 (file)
@@ -27,7 +27,6 @@
 
 namespace JSC {
 
-    class HashEntry;
     struct HashTable;
 
     struct ClassInfo {
@@ -49,10 +48,9 @@ namespace JSC {
         {
             if (classPropHashTableGetterFunction)
                 return classPropHashTableGetterFunction(exec);
-            return staticPropHashTable;
+            return 0;
         }
 
-        const HashTable* staticPropHashTable;
         typedef const HashTable* (*ClassPropHashTableGetterFunction)(ExecState*);
         const ClassPropHashTableGetterFunction classPropHashTableGetterFunction;
     };
index 9c48b23..1f0663b 100644 (file)
@@ -32,7 +32,7 @@ using namespace WTF;
 
 namespace JSC {
 
-const ClassInfo DateInstance::info = {"Date", 0, 0, 0};
+const ClassInfo DateInstance::info = { "Date", 0, 0 };
 
 DateInstance::DateInstance(ExecState* exec, NonNullPassRefPtr<Structure> structure)
     : JSWrapperObject(structure)
index 210be42..98316ec 100644 (file)
@@ -256,7 +256,7 @@ static bool fillStructuresUsingDateArgs(ExecState *exec, const ArgList& args, in
     return ok;
 }
 
-const ClassInfo DatePrototype::info = {"Date", &DateInstance::info, 0, ExecState::dateTable};
+const ClassInfo DatePrototype::info = { "Date", &DateInstance::info, ExecState::dateTable };
 
 /* Source for DatePrototype.lut.h
 @begin dateTable
index 86e1847..230798b 100644 (file)
@@ -23,7 +23,7 @@
 
 namespace JSC {
 
-const ClassInfo ErrorInstance::info = { "Error", 0, 0, 0 };
+const ClassInfo ErrorInstance::info = { "Error", 0, 0 };
 
 ErrorInstance::ErrorInstance(NonNullPassRefPtr<Structure> structure)
     : JSObject(structure)
index 8caa5bf..ed7cc98 100644 (file)
@@ -30,7 +30,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(InternalFunction);
 
-const ClassInfo InternalFunction::info = { "Function", 0, 0, 0 };
+const ClassInfo InternalFunction::info = { "Function", 0, 0 };
 
 const ClassInfo* InternalFunction::classInfo() const
 {
index 878449d..7ff0a99 100644 (file)
@@ -37,7 +37,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(JSActivation);
 
-const ClassInfo JSActivation::info = { "JSActivation", 0, 0, 0 };
+const ClassInfo JSActivation::info = { "JSActivation", 0, 0 };
 
 JSActivation::JSActivation(CallFrame* callFrame, NonNullPassRefPtr<FunctionExecutable> functionExecutable)
     : Base(callFrame->globalData().activationStructure, new JSActivationData(functionExecutable, callFrame->registers()))
index b255728..7aa2a6e 100644 (file)
@@ -86,7 +86,7 @@ ASSERT_CLASS_FITS_IN_CELL(JSArray);
 // as long as it is 1/8 full. If more sparse than that, we use a map.
 static const unsigned minDensityMultiplier = 8;
 
-const ClassInfo JSArray::info = {"Array", 0, 0, 0};
+const ClassInfo JSArray::info = { "Array", 0, 0 };
 
 static inline size_t storageSize(unsigned vectorLength)
 {
index dce198d..a060bbc 100644 (file)
@@ -33,7 +33,7 @@ using namespace WTF;
 
 namespace JSC {
 
-const ClassInfo JSByteArray::s_defaultInfo = { "ByteArray", 0, 0, 0 };
+const ClassInfo JSByteArray::s_defaultInfo = { "ByteArray", 0, 0 };
 
 JSByteArray::JSByteArray(ExecState* exec, NonNullPassRefPtr<Structure> structure, ByteArray* storage, const JSC::ClassInfo* classInfo)
     : JSObject(structure)
index 43c6c3c..fe76eeb 100644 (file)
@@ -43,7 +43,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(JSFunction);
 
-const ClassInfo JSFunction::info = { "Function", &InternalFunction::info, 0, 0 };
+const ClassInfo JSFunction::info = { "Function", &InternalFunction::info, 0 };
 
 bool JSFunction::isHostFunctionNonInline() const
 {
index 217c6e9..ccb2cc7 100644 (file)
@@ -72,7 +72,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(JSGlobalObject);
 
-const ClassInfo JSGlobalObject::info = { "CallbackGlobalObject", 0, 0, 0 };
+const ClassInfo JSGlobalObject::info = { "CallbackGlobalObject", 0, 0 };
 
 static inline void markIfNeeded(MarkStack& markStack, JSValue v)
 {
index a14ad6e..216d353 100644 (file)
@@ -600,7 +600,7 @@ bool Stringifier::Holder::appendNextProperty(Stringifier& stringifier, StringBui
 
 // ------------------------------ JSONObject --------------------------------
 
-const ClassInfo JSONObject::info = { "JSON", 0, 0, ExecState::jsonTable };
+const ClassInfo JSONObject::info = { "JSON", 0, ExecState::jsonTable };
 
 /* Source for JSONObject.lut.h
 @begin jsonTable
index 3ce824d..5af8960 100644 (file)
@@ -42,7 +42,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(JSObject);
 
-const ClassInfo JSObject::info = { "CallbackObject", 0, 0, 0 };
+const ClassInfo JSObject::info = { "CallbackObject", 0, 0 };
 
 static inline void getClassPropertyNames(ExecState* exec, const ClassInfo* classInfo, PropertyNameArray& propertyNames, EnumerationMode mode)
 {
index 7ff5070..350023d 100644 (file)
@@ -58,7 +58,7 @@ namespace JSC {
 
 // ------------------------------ MathObject --------------------------------
 
-const ClassInfo MathObject::info = { "Math", 0, 0, ExecState::mathTable };
+const ClassInfo MathObject::info = { "Math", 0, ExecState::mathTable };
 
 /* Source for MathObject.lut.h
 @begin mathTable
index 4d17eee..74bd83e 100644 (file)
@@ -30,7 +30,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(NativeErrorConstructor);
 
-const ClassInfo NativeErrorConstructor::info = { "Function", &InternalFunction::info, 0, 0 };
+const ClassInfo NativeErrorConstructor::info = { "Function", &InternalFunction::info, 0 };
 
 NativeErrorConstructor::NativeErrorConstructor(ExecState* exec, NonNullPassRefPtr<Structure> structure, NativeErrorPrototype* nativeErrorPrototype)
     : InternalFunction(&exec->globalData(), structure, Identifier(exec, nativeErrorPrototype->getDirect(exec->propertyNames().name).getString(exec)))
index 541544d..4b6cacc 100644 (file)
@@ -41,7 +41,7 @@ static JSValue numberConstructorMinValue(ExecState*, const Identifier&, const Pr
 
 namespace JSC {
 
-const ClassInfo NumberConstructor::info = { "Function", &InternalFunction::info, 0, ExecState::numberTable };
+const ClassInfo NumberConstructor::info = { "Function", &InternalFunction::info, ExecState::numberTable };
 
 /* Source for NumberConstructor.lut.h
 @begin numberTable
index 43afc5a..e691a6c 100644 (file)
@@ -29,7 +29,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(NumberObject);
 
-const ClassInfo NumberObject::info = { "Number", 0, 0, 0 };
+const ClassInfo NumberObject::info = { "Number", 0, 0 };
 
 NumberObject::NumberObject(NonNullPassRefPtr<Structure> structure)
     : JSWrapperObject(structure)
index a4c1c42..b35a0a5 100644 (file)
@@ -62,7 +62,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(RegExpConstructor);
 
-const ClassInfo RegExpConstructor::info = { "Function", &InternalFunction::info, 0, ExecState::regExpConstructorTable };
+const ClassInfo RegExpConstructor::info = { "Function", &InternalFunction::info, ExecState::regExpConstructorTable };
 
 /* Source for RegExpConstructor.lut.h
 @begin regExpConstructorTable
index c1e6775..cca0aa2 100644 (file)
@@ -45,7 +45,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(RegExpObject);
 
-const ClassInfo RegExpObject::info = { "RegExp", 0, 0, ExecState::regExpTable };
+const ClassInfo RegExpObject::info = { "RegExp", 0, ExecState::regExpTable };
 
 /* Source for RegExpObject.lut.h
 @begin regExpTable
index 5824a1e..e393e05 100644 (file)
@@ -44,7 +44,7 @@ static JSValue QT_FASTCALL regExpProtoFuncToString(ExecState*, JSObject*, JSValu
 
 // ECMA 15.10.5
 
-const ClassInfo RegExpPrototype::info = { "RegExpPrototype", 0, 0, 0 };
+const ClassInfo RegExpPrototype::info = { "RegExpPrototype", 0, 0 };
 
 RegExpPrototype::RegExpPrototype(ExecState* exec, NonNullPassRefPtr<Structure> structure, Structure* prototypeFunctionStructure)
     : JSObject(structure)
index 7756ecc..fdadae2 100644 (file)
@@ -27,7 +27,7 @@ namespace JSC {
 
 ASSERT_CLASS_FITS_IN_CELL(StringObject);
 
-const ClassInfo StringObject::info = { "String", 0, 0, 0 };
+const ClassInfo StringObject::info = { "String", 0, 0 };
 
 StringObject::StringObject(ExecState* exec, NonNullPassRefPtr<Structure> structure)
     : JSWrapperObject(structure)
index 5b40031..9334bc2 100644 (file)
@@ -83,7 +83,7 @@ static JSValue QT_FASTCALL stringProtoFuncTrimRight(ExecState*, JSObject*, JSVal
 
 namespace JSC {
 
-const ClassInfo StringPrototype::info = { "String", &StringObject::info, 0, ExecState::stringTable };
+const ClassInfo StringPrototype::info = { "String", &StringObject::info, ExecState::stringTable };
 
 /* Source for StringPrototype.lut.h
 @begin stringTable 26
index 7ae50b8..6888ab6 100644 (file)
@@ -43,7 +43,7 @@ QT_BEGIN_NAMESPACE
 namespace QScript
 {
 
-const JSC::ClassInfo QScriptActivationObject::info = { "QScriptActivationObject", 0, 0, 0 };
+const JSC::ClassInfo QScriptActivationObject::info = { "QScriptActivationObject", 0, 0 };
 
 QScriptActivationObject::QScriptActivationObject(JSC::ExecState *callFrame, JSC::JSObject *delegate)
     : JSC::JSVariableObject(callFrame->globalData().activationStructure,
index e393b0d..fbd7245 100644 (file)
@@ -44,8 +44,8 @@ QT_BEGIN_NAMESPACE
 namespace QScript
 {
 
-const JSC::ClassInfo FunctionWrapper::info = { "QtNativeFunctionWrapper", &PrototypeFunction::info, 0, 0 };
-const JSC::ClassInfo FunctionWithArgWrapper::info = { "QtNativeFunctionWithArgWrapper", &PrototypeFunction::info, 0, 0 };
+const JSC::ClassInfo FunctionWrapper::info = { "QtNativeFunctionWrapper", &PrototypeFunction::info, 0 };
+const JSC::ClassInfo FunctionWithArgWrapper::info = { "QtNativeFunctionWithArgWrapper", &PrototypeFunction::info, 0 };
 
 FunctionWrapper::FunctionWrapper(JSC::ExecState *exec, int length, const JSC::Identifier &name,
                                  QScriptEngine::FunctionSignature function)
index 5215b10..a8b55db 100644 (file)
@@ -35,7 +35,7 @@ ASSERT_CLASS_FITS_IN_CELL(QT_PREPEND_NAMESPACE(QScriptObjectPrototype));
 QT_BEGIN_NAMESPACE
 
 // masquerading as JSC::JSObject
-const JSC::ClassInfo QScriptObject::info = { "Object", 0, 0, 0 };
+const JSC::ClassInfo QScriptObject::info = { "Object", 0, 0 };
 
 QScriptObject::Data::~Data()
 {
index 4336d2d..40a4e83 100644 (file)
@@ -1017,7 +1017,7 @@ JSC::JSValue QtFunction::execute(JSC::ExecState *exec, JSC::JSValue thisValue,
                         meta, data->initialIndex, data->maybeOverloaded);
 }
 
-const JSC::ClassInfo QtFunction::info = { "QtFunction", &InternalFunction::info, 0, 0 };
+const JSC::ClassInfo QtFunction::info = { "QtFunction", &InternalFunction::info, 0 };
 
 JSC::JSValue QT_FASTCALL QtFunction::call(JSC::ExecState *exec, JSC::JSObject *callee,
                                             JSC::JSValue thisValue, const JSC::ArgList &args)
@@ -1074,7 +1074,7 @@ int QtFunction::specificIndex(const QScriptContext *context) const
     return result.asInt32();
 }
 
-const JSC::ClassInfo QtPropertyFunction::info = { "QtPropertyFunction", &InternalFunction::info, 0, 0 };
+const JSC::ClassInfo QtPropertyFunction::info = { "QtPropertyFunction", &InternalFunction::info, 0 };
 
 QtPropertyFunction::QtPropertyFunction(const QMetaObject *meta, int index,
                                        JSC::JSGlobalData *data,
@@ -1801,7 +1801,7 @@ QObjectPrototype::QObjectPrototype(JSC::ExecState* exec, WTF::PassRefPtr<JSC::St
     this->structure()->setHasGetterSetterProperties(true);
 }
 
-const JSC::ClassInfo QMetaObjectWrapperObject::info = { "QMetaObject", 0, 0, 0 };
+const JSC::ClassInfo QMetaObjectWrapperObject::info = { "QMetaObject", 0, 0 };
 
 QMetaObjectWrapperObject::QMetaObjectWrapperObject(
     JSC::ExecState *exec, const QMetaObject *metaObject, JSC::JSValue ctor,
index 41e3494..210420e 100644 (file)
@@ -47,7 +47,7 @@ QT_BEGIN_NAMESPACE
   \sa QScriptContext::pushScope()
 */
 
-const JSC::ClassInfo QScriptStaticScopeObject::info = { "QScriptStaticScopeObject", 0, 0, 0 };
+const JSC::ClassInfo QScriptStaticScopeObject::info = { "QScriptStaticScopeObject", 0, 0 };
 
 /*!
     Creates a static scope object with a fixed set of undeletable properties.