remove unused JSC::ClassInfo::staticPropHashTable member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-08-08 00:14:12 +03:00
parent b6aa2c4e5d
commit cdace38489
31 changed files with 34 additions and 36 deletions

View 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)

View 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)

View 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()
{

View 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

View 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)

View 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;
};

View 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)

View 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

View 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)

View 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
{

View 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()))

View 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)
{

View 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)

View 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
{

View 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)
{

View 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

View 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)
{

View 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

View 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)))

View 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

View 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)

View 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

View 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

View 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)

View 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)

View 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

View 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,

View 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)

View 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()
{

View 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,

View 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.