typedef void (*GetPropertyNamesFunctionPtr)(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode);
GetPropertyNamesFunctionPtr getPropertyNames;
+ typedef uint32_t (*GetEnumerableLengthFunctionPtr)(ExecState*, JSObject*);
+ GetEnumerableLengthFunctionPtr getEnumerableLength;
+
+ GetPropertyNamesFunctionPtr getStructurePropertyNames;
+ GetPropertyNamesFunctionPtr getGenericPropertyNames;
+
typedef String (*ClassNameFunctionPtr)(const JSObject*);
ClassNameFunctionPtr className;
&ClassName::getOwnPropertyNames, \
&ClassName::getOwnNonIndexPropertyNames, \
&ClassName::getPropertyNames, \
+ &ClassName::getEnumerableLength, \
+ &ClassName::getStructurePropertyNames, \
+ &ClassName::getGenericPropertyNames, \
&ClassName::className, \
&ClassName::customHasInstance, \
&ClassName::defineOwnProperty, \
// nullptrif there is none.
const ClassInfo* parentClass;
- // Static hash-table of properties.
- // For classes that can be used from multiple threads, it is accessed via a getter function
- // that would typically return a pointer to a thread-specific value.
- const HashTable* propHashTable(ExecState* exec) const
- {
- if (classPropHashTableGetterFunction)
- return &classPropHashTableGetterFunction(exec->vm());
-
- return staticPropHashTable;
- }
-
- const HashTable* propHashTable(VM& vm) const
- {
- if (classPropHashTableGetterFunction)
- return &classPropHashTableGetterFunction(vm);
-
- return staticPropHashTable;
- }
-
bool isSubClassOf(const ClassInfo* other) const
{
for (const ClassInfo* ci = this; ci; ci = ci->parentClass) {
bool hasStaticProperties() const
{
for (const ClassInfo* ci = this; ci; ci = ci->parentClass) {
- if (ci->staticPropHashTable || ci->classPropHashTableGetterFunction)
+ if (ci->staticPropHashTable)
return true;
}
return false;
}
- bool hasStaticSetterOrReadonlyProperties(VM&) const;
+ bool hasStaticSetterOrReadonlyProperties() const;
const HashTable* staticPropHashTable;
- typedef const HashTable& (*ClassPropHashTableGetterFunction)(VM&);
- const ClassPropHashTableGetterFunction classPropHashTableGetterFunction;
MethodTable methodTable;