Home | History | Annotate | Download | only in scripts

Lines Matching refs:push

220     push(@headerContent, "class $implClassName;\n\n") unless $codeGenerator->IsSVGAnimatedType($implClassName);
280 push(@getOwnPropertySlotImpl, " ${namespaceMaybe}JSValue proto = prototype();\n");
281 push(@getOwnPropertySlotImpl, " if (proto.isObject() && static_cast<${namespaceMaybe}JSObject*>(asObject(proto))->hasProperty(exec, propertyName))\n");
282 push(@getOwnPropertySlotImpl, " return false;\n\n");
288 push(@getOwnPropertySlotImpl, " const ${namespaceMaybe}HashEntry* entry = ${className}Table.entry(exec, propertyName);\n");
289 push(@getOwnPropertySlotImpl, " if (entry) {\n");
290 push(@getOwnPropertySlotImpl, " slot.setCustom(this, entry->propertyGetter());\n");
291 push(@getOwnPropertySlotImpl, " return true;\n");
292 push(@getOwnPropertySlotImpl, " }\n");
301 push(@getOwnPropertySlotImpl, " bool ok;\n");
302 push(@getOwnPropertySlotImpl, " unsigned index = propertyName.toUInt32(&ok, false);\n");
307 push(@getOwnPropertySlotImpl, " if (ok) {\n");
309 push(@getOwnPropertySlotImpl, " if (ok && index < static_cast<$implClassName*>(impl())->length()) {\n");
312 push(@getOwnPropertySlotImpl, " slot.setValue(getByIndex(exec, index));\n");
314 push(@getOwnPropertySlotImpl, " slot.setCustomIndex(this, index, indexGetter);\n");
316 push(@getOwnPropertySlotImpl, " return true;\n");
317 push(@getOwnPropertySlotImpl, " }\n");
321 push(@getOwnPropertySlotImpl, " if (canGetItemsForName(exec, static_cast<$implClassName*>(impl()), propertyName)) {\n");
322 push(@getOwnPropertySlotImpl, " slot.setCustom(this, nameGetter);\n");
323 push(@getOwnPropertySlotImpl, " return true;\n");
324 push(@getOwnPropertySlotImpl, " }\n");
337 push(@getOwnPropertySlotImpl, " if (getOwnPropertySlotDelegate(exec, propertyName, slot))\n");
338 push(@getOwnPropertySlotImpl, " return true;\n");
344 push(@getOwnPropertySlotImpl, " return ${namespaceMaybe}getStaticValueSlot<$className, Base>(exec, s_info.staticPropHashTable, this, propertyName, slot);\n");
346 push(@getOwnPropertySlotImpl, " return ${namespaceMaybe}getStaticValueSlot<$className, Base>(exec, " . hashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, propertyName, slot);\n");
349 push(@getOwnPropertySlotImpl, " return Base::getOwnPropertySlot(exec, propertyName, slot);\n");
364 push(@implContent, " if (!static_cast<$className*>(thisObject)->allowsAccessFrom(exec))\n");
366 push(@implContent, " if (!allowsAccessFromFrame(exec, static_cast<$className*>(thisObject)->impl()->frame()))\n");
368 push(@implContent, " return false;\n");
372 push(@getOwnPropertyDescriptorImpl, " ${namespaceMaybe}JSValue proto = prototype();\n");
373 push(@getOwnPropertyDescriptorImpl, " if (proto.isObject() && static_cast<${namespaceMaybe}JSObject*>(asObject(proto))->hasProperty(exec, propertyName))\n");
374 push(@getOwnPropertyDescriptorImpl, " return false;\n\n");
380 push(@getOwnPropertyDescriptorImpl, " const ${namespaceMaybe}HashEntry* entry = ${className}Table.entry(exec, propertyName);\n");
381 push(@getOwnPropertyDescriptorImpl, " if (entry) {\n");
382 push(@getOwnPropertyDescriptorImpl, " PropertySlot slot;\n");
383 push(@getOwnPropertyDescriptorImpl, " slot.setCustom(this, entry->propertyGetter());\n");
384 push(@getOwnPropertyDescriptorImpl, " descriptor.setDescriptor(slot.getValue(exec, propertyName), entry->attributes());\n");
385 push(@getOwnPropertyDescriptorImpl, " return true;\n");
386 push(@getOwnPropertyDescriptorImpl, " }\n");
395 push(@getOwnPropertyDescriptorImpl, " bool ok;\n");
396 push(@getOwnPropertyDescriptorImpl, " unsigned index = propertyName.toUInt32(&ok, false);\n");
397 push(@getOwnPropertyDescriptorImpl, " if (ok && index < static_cast<$implClassName*>(impl())->length()) {\n");
401 push(@getOwnPropertyDescriptorImpl, " descriptor.setDescriptor(getByIndex(exec, index), ${namespaceMaybe}DontDelete);\n");
403 push(@getOwnPropertyDescriptorImpl, " descriptor.setDescriptor(getByIndex(exec, index), ${namespaceMaybe}DontDelete | ${namespaceMaybe}ReadOnly);\n");
406 push(@getOwnPropertyDescriptorImpl, " ${namespaceMaybe}PropertySlot slot;\n");
407 push(@getOwnPropertyDescriptorImpl, " slot.setCustomIndex(this, index, indexGetter);\n");
410 push(@getOwnPropertyDescriptorImpl, " descriptor.setDescriptor(slot.getValue(exec, propertyName), ${namespaceMaybe}DontDelete);\n");
412 push(@getOwnPropertyDescriptorImpl, " descriptor.setDescriptor(slot.getValue(exec, propertyName), ${namespaceMaybe}DontDelete | ${namespaceMaybe}ReadOnly);\n");
415 push(@getOwnPropertyDescriptorImpl, " return true;\n");
416 push(@getOwnPropertyDescriptorImpl, " }\n");
420 push(@getOwnPropertyDescriptorImpl, " if (canGetItemsForName(exec, static_cast<$implClassName*>(impl()), propertyName)) {\n");
421 push(@getOwnPropertyDescriptorImpl, " ${namespaceMaybe}PropertySlot slot;\n");
422 push(@getOwnPropertyDescriptorImpl, " slot.setCustom(this, nameGetter);\n");
423 push(@getOwnPropertyDescriptorImpl, " descriptor.setDescriptor(slot.getValue(exec, propertyName), ReadOnly | DontDelete | DontEnum);\n");
424 push(@getOwnPropertyDescriptorImpl, " return true;\n");
425 push(@getOwnPropertyDescriptorImpl, " }\n");
438 push(@getOwnPropertyDescriptorImpl, " if (getOwnPropertyDescriptorDelegate(exec, propertyName, descriptor))\n");
439 push(@getOwnPropertyDescriptorImpl, " return true;\n");
445 push(@getOwnPropertyDescriptorImpl, " return ${namespaceMaybe}getStaticValueDescriptor<$className, Base>(exec, s_info.staticPropHashTable, this, propertyName, descriptor);\n");
447 push(@getOwnPropertyDescriptorImpl, " return ${namespaceMaybe}getStaticValueDescriptor<$className, Base>(exec, " . hashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, propertyName, descriptor);\n");
450 push(@getOwnPropertyDescriptorImpl, " return Base::getOwnPropertyDescriptor(exec, propertyName, descriptor);\n");
494 push(@headerContentHeader, "\n#ifndef $className" . "_h");
495 push(@headerContentHeader, "\n#define $className" . "_h\n\n");
500 push(@headerContentHeader, "#if ${conditionalString}\n\n");
537 push(@headerContent, "\nnamespace WebCore {\n\n");
544 push(@headerContent, "class $className : public $parentClassName {\n");
545 push(@headerContent, " typedef $parentClassName Base;\n");
546 push(@headerContent, "public:\n");
550 push(@headerContent, " $className(NonNullPassRefPtr<JSC::Structure>, PassRefPtr<$implType>, JSDOMWindowShell*);\n");
552 push(@headerContent, " $className(NonNullPassRefPtr<JSC::Structure>, PassRefPtr<$implType>);\n");
554 push(@headerContent, " $className(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<$implType>);\n");
558 push(@headerContent, " virtual ~$className();\n") if (!$hasParent or $eventTarget or $interfaceName eq "DOMWindow");
561 push(@headerContent, " static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);\n") unless ($dataNode->extendedAttributes->{"ExtendsDOMGlobalObject"});
578 push(@headerContent, " virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);\n");
579 push(@headerContent, " virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);\n");
580 push(@headerContent, " virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);\n") if ($dataNode->extendedAttributes->{"HasIndexGetter"} || $dataNode->extendedAttributes->{"HasCustomIndexGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) && !$dataNode->extendedAttributes->{"HasOverridingNameGetter"};
581 push(@headerContent, " bool getOwnPropertySlotDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n") if $dataNode->extendedAttributes->{"DelegatingGetOwnPropertySlot"};
582 push(@headerContent, " bool getOwnPropertyDescriptorDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);\n") if $dataNode->extendedAttributes->{"DelegatingGetOwnPropertySlot"};
601 push(@headerContent, " virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);\n");
602 push(@headerContent, " virtual void put(JSC::ExecState*, unsigned propertyName, JSC::JSValue);\n") if $dataNode->extendedAttributes->{"HasCustomIndexSetter"};
603 push(@headerContent, " bool putDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::JSValue, JSC::PutPropertySlot&);\n") if $dataNode->extendedAttributes->{"DelegatingPutFunction"};
607 push(@headerContent, " virtual const JSC::ClassInfo* classInfo() const { return &s_info; }\n");
608 push(@headerContent, " static const JSC::ClassInfo s_info;\n\n");
615 push(@headerContent,
623 push(@headerContent, " virtual void markChildren(JSC::MarkStack&);\n\n");
628 push(@headerContent, " virtual void pushEventHandlerScope(JSC::ExecState*, JSC::ScopeChain&) const;\n\n") if $dataNode->extendedAttributes->{"CustomPushEventHandlerScope"};
631 push(@headerContent, " virtual JSC::CallType getCallData(JSC::CallData&);\n\n") if $dataNode->extendedAttributes->{"CustomCall"};
634 push(@headerContent, " virtual bool deleteProperty(JSC::ExecState*, const JSC::Identifier&);\n") if $dataNode->extendedAttributes->{"CustomDeleteProperty"};
638 push(@headerContent, " virtual void getPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);\n");
643 push(@headerContent, " virtual bool defineOwnProperty(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&, bool shouldThrow);\n") if $interfaceName eq "DOMWindow";
647 push(@headerContent, " virtual void getOwnPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);\n");
652 push(@headerContent, " virtual void defineGetter(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSObject* getterFunction, unsigned attributes);\n") if $dataNode->extendedAttributes->{"CustomDefineGetter"};
655 push(@headerContent, " virtual void defineSetter(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSObject* setterFunction, unsigned attributes);\n") if $dataNode->extendedAttributes->{"CustomDefineSetter"};
658 push(@headerContent, " virtual JSC::JSValue lookupGetter(JSC::ExecState*, const JSC::Identifier& propertyName);\n") if $dataNode->extendedAttributes->{"CustomLookupGetter"};
661 push(@headerContent, " virtual JSC::JSValue lookupSetter(JSC::ExecState*, const JSC::Identifier& propertyName);\n") if $dataNode->extendedAttributes->{"CustomLookupSetter"};
665 push(@headerContent, " virtual bool toBoolean(JSC::ExecState*) const { return false; };\n");
670 push(@headerContent, " static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);\n") if (!($dataNode->extendedAttributes->{"OmitConstructor"} || $dataNode->extendedAttributes->{"CustomConstructor"}));
683 push(@headerContent, " static const unsigned " . $attribute->signature->name . "Slot = $numCachedAttributes + Base::AnonymousSlotCount;\n");
690 push(@headerContent, " using $parentClassName" . "::putAnonymousValue;\n");
691 push(@headerContent, " using $parentClassName" . "::getAnonymousValue;\n");
694 push(@headerContent, "\n // Custom attributes\n");
698 push(@headerContent, " JSC::JSValue " . $codeGenerator->WK_lcfirst($attribute->signature->name) . "(JSC::ExecState*) const;\n");
700 push(@headerContent, " void set" . $codeGenerator->WK_ucfirst($attribute->signature->name) . "(JSC::ExecState*, JSC::JSValue);\n");
703 push(@headerContent, " JSC::JSValue " . $codeGenerator->WK_lcfirst($attribute->signature->name) . "(JSC::ExecState*) const;\n");
706 push(@headerContent, " void set" . $codeGenerator->WK_ucfirst($attribute->signature->name) . "(JSC::ExecState*, JSC::JSValue);\n");
717 push(@headerContent, "\n // Custom functions\n");
721 push(@headerContent, " JSC::JSValue " . $functionImplementationName . "(JSC::ExecState*, const JSC::ArgList&);\n");
729 push(@headerContent, " $implType* impl() const { return m_impl.get(); }\n\n");
730 push(@headerContent, "private:\n");
731 push(@headerContent, " RefPtr<$implType> m_impl;\n");
733 push(@headerContent, " $implClassName* impl() const\n");
734 push(@headerContent, " {\n");
735 push(@headerContent, " return static_cast<$implClassName*>(Base::impl());\n");
736 push(@headerContent, " }\n");
741 push(@headerContent, "public:\n");
742 push(@headerContent, " static const unsigned AnonymousSlotCount = $numCachedAttributes + Base::AnonymousSlotCount;\n");
746 push(@headerContent, "protected:\n");
747 push(@headerContent, " static const unsigned StructureFlags = ");
749 push(@headerContent, $structureFlag . " | ");
751 push(@headerContent, "Base::StructureFlags;\n");
755 push(@headerContent, " static JSC::JSValue indexGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);\n");
758 push(@headerContent, " JSC::JSValue getByIndex(JSC::ExecState*, unsigned index);\n");
764 push(@headerContent, " void indexSetter(JSC::ExecState*, unsigned index, JSC::JSValue);\n");
768 push(@headerContent, "private:\n");
769 push(@headerContent, " static bool canGetItemsForName(JSC::ExecState*, $implClassName*, const JSC::Identifier&);\n");
770 push(@headerContent, " static JSC::JSValue nameGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);\n");
773 push(@headerContent, "};\n\n");
776 push(@headerContent, "ALWAYS_INLINE bool ${className}::getOwnPropertySlot(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::PropertySlot& slot)\n");
777 push(@headerContent, "{\n");
778 push(@headerContent, GenerateGetOwnPropertySlotBody($dataNode, $interfaceName, $className, $implClassName, $numAttributes > 0, 1));
779 push(@headerContent, "}\n\n");
780 push(@headerContent, "ALWAYS_INLINE bool ${className}::getOwnPropertyDescriptor(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::PropertyDescriptor& descriptor)\n");
781 push(@headerContent, "{\n");
782 push(@headerContent, GenerateGetOwnPropertyDescriptorBody($dataNode, $interfaceName, $className, $implClassName, $numAttributes > 0, 1));
783 push(@headerContent, "}\n\n");
788 push(@headerContent, "JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, JSSVGPODTypeWrapper<$podType>*, SVGElement*);\n");
790 push(@headerContent, "JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, $implType*, SVGElement* context);\n");
792 push(@headerContent, "JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, $implType*);\n");
797 push(@headerContent, "$podType to${interfaceName}(JSC::JSValue);\n");
799 push(@headerContent, "PassRefPtr<NodeFilter> toNodeFilter(JSC::JSValue);\n");
801 push(@headerContent, "$implClassName* to${interfaceName}(JSC::JSValue);\n");
805 push(@headerContent, "JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, $interfaceName*);\n");
808 push(@headerContent, "\n");
812 push(@headerContent, "class ${className}Prototype : public JSC::JSObject {\n");
813 push(@headerContent, " typedef JSC::JSObject Base;\n");
814 push(@headerContent, "public:\n");
816 push(@headerContent, " void* operator new(size_t);\n");
818 push(@headerContent, " void* operator new(size_t, JSC::JSGlobalData*);\n");
820 push(@headerContent, " static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);\n");
822 push(@headerContent, " virtual const JSC::ClassInfo* classInfo() const { return &s_info; }\n");
823 push(@headerContent, " static const JSC::ClassInfo s_info;\n");
825 push(@headerContent, " virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n");
826 push(@headerContent, " virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);\n");
827 push(@headerContent, " bool getOwnPropertySlotDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n") if $dataNode->extendedAttributes->{"DelegatingPrototypeGetOwnPropertySlot"};
828 push(@headerContent, " bool getOwnPropertyDescriptorDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);\n") if $dataNode->extendedAttributes->{"DelegatingPrototypeGetOwnPropertySlot"};
834 push(@headerContent,
840 push(@headerContent, " virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);\n");
841 push(@headerContent, " bool putDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::JSValue, JSC::PutPropertySlot&);\n");
845 push(@headerContent, " virtual void defineGetter(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSObject* getterFunction, unsigned attributes);\n") if $dataNode->extendedAttributes->{"CustomPrototypeDefineGetter"};
847 push(@headerContent, " ${className}Prototype(NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }\n");
850 push(@headerContent, "protected:\n");
851 push(@headerContent, " static const unsigned StructureFlags = ");
853 push(@headerContent, $structureFlag . " | ");
855 push(@headerContent, "Base::StructureFlags;\n");
857 push(@headerContent, "};\n\n");
860 push(@headerContent,"// Functions\n\n");
863 push(@headerContent, "JSC::JSValue JSC_HOST_CALL ${functionName}(JSC::ExecState*, JSC::JSObject*, JSC::JSValue, const JSC::ArgList&);\n");
868 push(@headerContent,"// Attributes\n\n");
871 push(@headerContent, "JSC::JSValue ${getter}(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);\n");
874 push(@headerContent, "void ${setter}(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);\n");
880 push(@headerContent, "JSC::JSValue ${getter}(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);\n");
885 push(@headerContent,"// Constants\n\n");
888 push(@headerContent, "JSC::JSValue ${getter}(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);\n");
892 push(@headerContent, "\n} // namespace WebCore\n\n");
893 push(@headerContent, "#endif // ${conditionalString}\n\n") if $conditional;
894 push(@headerContent, "#endif\n");
898 push(@depsContent, "$className.h : ", join(" ", map { "$_.idl" } @ancestorInterfaceNames), "\n");
899 push(@depsContent, map { "$_.idl :\n" } @ancestorInterfaceNames);
923 push(@implContentHeader, "\n#include \"config.h\"\n");
927 push(@implContentHeader, "\n#if ${conditionalString}\n\n");
929 push(@implContentHeader, "#include \"$className.h\"\n\n");
940 push(@implContent, "\nusing namespace JSC;\n\n");
941 push(@implContent, "namespace WebCore {\n\n");
943 push(@implContent, "ASSERT_CLASS_FITS_IN_CELL($className);\n\n");
963 push(@hashKeys, $name);
966 push(@specials, "DontDelete") unless $attribute->signature->extendedAttributes->{"Deletable"};
967 push(@specials, "DontEnum") if $attribute->signature->extendedAttributes->{"DontEnum"};
968 push(@specials, "ReadOnly") if $attribute->type =~ /readonly/;
970 push(@hashSpecials, $special);
973 push(@hashValue1, $getter);
976 push(@hashValue2, "0");
979 push(@hashValue2, $setter);
989 push(@hashKeys, "constructor");
991 push(@hashValue1, $getter);
992 push(@hashValue2, "0");
993 push(@hashSpecials, "DontEnum|ReadOnly"); # FIXME: Setting the constructor should be possible.
1017 push(@hashKeys, $constant->name);
1019 push
1020 push(@hashValue2, "0");
1021 push(@hashSpecials, "DontDelete|ReadOnly");
1031 push(@implContent, constructorFor($className, $protoClassName, $interfaceName, $visibleClassName, $dataNode->extendedAttributes->{"CanBeConstructed"}));
1045 push(@hashKeys, $constant->name);
1047 push(@hashValue1, $getter);
1048 push(@hashValue2, "0");
1049 push(@hashSpecials, "DontDelete|ReadOnly");
1054 push(@hashKeys, $name);
1057 push(@hashValue1, $value);
1060 push(@hashValue2, $numParameters);
1063 push(@specials, "DontDelete") unless $function->signature->extendedAttributes->{"Deletable"};
1064 push(@specials, "DontEnum") if $function->signature->extendedAttributes->{"DontEnum"};
1065 push(@specials, "Function");
1067 push(@hashSpecials, $special);
1075 push(@implContent, "static const HashTable* get${className}PrototypeTable(ExecState* exec)\n");
1076 push(@implContent, "{\n");
1077 push(@implContent, " return getHashTableForGlobalData(exec->globalData(), &${className}PrototypeTable);\n");
1078 push(@implContent, "}\n");
1079 push(@implContent, "const ClassInfo ${className}Prototype::s_info = { \"${visibleClassName}Prototype\", 0, 0, get${className}PrototypeTable };\n\n");
1081 push(@implContent, "const ClassInfo ${className}Prototype::s_info = { \"${visibleClassName}Prototype\", 0, &${className}PrototypeTable, 0 };\n\n");
1084 push(@implContent, "void* ${className}Prototype::operator new(size_t size)\n");
1085 push(@implContent, "{\n");
1086 push(@implContent, " return JSDOMWindow::commonJSGlobalData()->heap.allocate(size);\n");
1087 push(@implContent, "}\n\n");
1089 push(@implContent, "void* ${className}Prototype::operator new(size_t size, JSGlobalData* globalData)\n");
1090 push(@implContent, "{\n");
1091 push(@implContent, " return globalData->heap.allocate(size);\n");
1092 push(@implContent, "}\n\n");
1094 push(@implContent, "JSObject* ${className}Prototype::self(ExecState* exec, JSGlobalObject* globalObject)\n");
1095 push(@implContent, "{\n");
1096 push(@implContent, " return getDOMPrototype<${className}>(exec, globalObject);\n");
1097 push(@implContent, "}\n\n");
1100 push(@implContent, "bool ${className}Prototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)\n");
1101 push(@implContent, "{\n");
1104 push(@implContent, " if (getOwnPropertySlotDelegate(exec, propertyName, slot))\n");
1105 push(@implContent, " return true;\n");
1109 push(@implContent, " return Base::getOwnPropertySlot(exec, propertyName, slot);\n");
1111 push(@implContent, " return getStaticFunctionSlot<JSObject>(exec, " . prototypeHashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, propertyName, slot);\n");
1113 push(@implContent, " return getStaticValueSlot<${className}Prototype, JSObject>(exec, " . prototypeHashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, propertyName, slot);\n");
1115 push(@implContent, " return getStaticPropertySlot<${className}Prototype, JSObject>(exec, " . prototypeHashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, propertyName, slot);\n");
1117 push(@implContent, "}\n\n");
1119 push(@implContent, "bool ${className}Prototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)\n");
1120 push(@implContent, "{\n");
1123 push(@implContent, " if (getOwnPropertyDescriptorDelegate(exec, propertyName, descriptor))\n");
1124 push(@implContent, " return true;\n");
1128 push(@implContent, " return Base::getOwnPropertyDescriptor(exec, propertyName, descriptor);\n");
1130 push(@implContent, " return getStaticFunctionDescriptor<JSObject>(exec, " . prototypeHashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, propertyName, descriptor);\n");
1132 push(@implContent, " return getStaticValueDescriptor<${className}Prototype, JSObject>(exec, " . prototypeHashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, propertyName, descriptor);\n");
1134 push(@implContent, " return getStaticPropertyDescriptor<${className}Prototype, JSObject>(exec, " . prototypeHashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, propertyName, descriptor);\n");
1136 push(@implContent, "}\n\n");
1140 push(@implContent, "void ${className}Prototype::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)\n");
1141 push(@implContent, "{\n");
1142 push(@implContent, " if (putDelegate(exec, propertyName, value, slot))\n");
1143 push(@implContent, " return;\n");
1144 push(@implContent, " Base::put(exec, propertyName, value, slot);\n");
1145 push(@implContent, "}\n\n");
1150 push(@implContent, "static const HashTable* get${className}Table(ExecState* exec)\n");
1151 push(@implContent, "{\n");
1152 push(@implContent, " return getHashTableForGlobalData(exec->globalData(), &${className}Table);\n");
1153 push(@implContent, "}\n");
1155 push(@implContent, "const ClassInfo $className" . "::s_info = { \"${visibleClassName}\", ");
1157 push(@implContent, "&" . $parentClassName . "::s_info, ");
1159 push(@implContent, "0, ");
1163 push(@implContent, "&${className}Table");
1165 push(@implContent, "0");
1168 push(@implContent, ", get${className}Table ");
1170 push(@implContent, ", 0 ");
1172 push(@implContent, "};\n\n");
1181 push(@implContent, "${className}::$className(NonNullPassRefPtr<Structure> structure, PassRefPtr<$implType> impl, JSDOMWindowShell* shell)\n");
1182 push(@implContent, " : $parentClassName(structure, impl, shell)\n");
1185 push(@implContent, "${className}::$className(NonNullPassRefPtr<Structure> structure, PassRefPtr<$implType> impl)\n");
1186 push(@implContent, " : $parentClassName(structure, impl)\n");
1188 push(@implContent, "${className}::$className(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<$implType> impl)\n");
1190 push(@implContent, " : $parentClassName(structure, globalObject, impl)\n");
1192 push(@implContent, " : $parentClassName(structure, globalObject)\n");
1193 push(@implContent, " , m_impl(impl)\n");
1196 push(@implContent, "{\n");
1198 push(@implContent, " for (unsigned i = Base::AnonymousSlotCount; i < AnonymousSlotCount; i++)\n");
1199 push(@implContent, " putAnonymousValue(i, JSValue());\n");
1201 push(@implContent, "}\n\n");
1205 push(@implContent, "${className}::~$className()\n");
1206 push(@implContent, "{\n");
1210 push(@implContent, " impl()->invalidateJSEventListeners(this);\n");
1215 push(@implContent, " forgetDOMNode(this, impl(), impl()->document());\n");
1217 push(@implContent, " forgetDOMObject(this, impl());\n");
1220 push(@implContent, " JSSVGContextCache::forgetWrapper(this);\n") if IsSVGTypeNeedingContextParameter($implClassName);
1223 push(@implContent, "}\n\n");
1227 push(@implContent, "void ${className}::markChildren(MarkStack& markStack)\n");
1228 push(@implContent, "{\n");
1229 push(@implContent, " Base::markChildren(markStack);\n");
1230 push(@implContent, " impl()->markJSEventListeners(markStack);\n");
1231 push(@implContent, "}\n\n");
1235 push(@implContent, "JSObject* ${className}::createPrototype(ExecState* exec, JSGlobalObject* globalObject)\n");
1236 push(@implContent, "{\n");
1238 push(@implContent, " return new (exec) ${className}Prototype(${className}Prototype::createStructure(${parentClassName}Prototype::self(exec, globalObject)));\n");
1240 push(@implContent, " return new (exec) ${className}Prototype(${className}Prototype::createStructure(globalObject->objectPrototype()));\n");
1242 push(@implContent, "}\n\n");
1259 push(@implContent, "bool ${className}::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)\n");
1260 push(@implContent, "{\n");
1261 push(@implContent, GenerateGetOwnPropertySlotBody($dataNode, $interfaceName, $className, $implClassName, $numAttributes > 0, 0));
1262 push(@implContent, "}\n\n");
1263 push(@implContent, "bool ${className}::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)\n");
1264 push(@implContent, "{\n");
1265 push(@implContent, GenerateGetOwnPropertyDescriptorBody($dataNode, $interfaceName, $className, $implClassName, $numAttributes > 0, 0));
1266 push(@implContent, "}\n\n");
1271 push(@implContent, "bool ${className}::getOwnPropertySlot(ExecState* exec, unsigned propertyName, PropertySlot& slot)\n");
1272 push(@implContent, "{\n");
1273 push(@implContent, " if (propertyName < static_cast<$implClassName*>(impl())->length()) {\n");
1275 push(@implContent, " slot.setValue(getByIndex(exec, propertyName));\n");
1277 push(@implContent, " slot.setCustomIndex(this, propertyName, indexGetter);\n");
1279 push(@implContent, " return true;\n");
1280 push(@implContent, " }\n");
1281 push(@implContent, " return getOwnPropertySlot(exec, Identifier::from(exec, propertyName), slot);\n");
1282 push(@implContent, "}\n\n");
1295 push(@implContent, "#if ${conditionalString}\n");
1298 push(@implContent, "JSValue ${getFunctionName}(ExecState* exec, const Identifier&, const PropertySlot& slot)\n");
1299 push(@implContent, "{\n");
1300 push(@implContent, " ${className}* castedThis = static_cast<$className*>(asObject(slot.slotBase()));\n");
1310 push(@implContent, " if (!castedThis->allowsAccessFrom(exec))\n");
1311 push(@implContent, " return jsUndefined();\n");
1315 push(@implContent, " return castedThis->$implGetterFunctionName(exec);\n");
1318 push(@implContent, " $implClassName* imp = static_cast<$implClassName*>(castedThis->impl());\n");
1319 push(@implContent, " return checkNodeSecurity(exec, imp->$implGetterFunctionName()) ? " . NativeToJSValue($attribute->signature, 0, $implClassName, $implClassNameForValueConversion, "imp->$implGetterFunctionName()", "castedThis") . " : jsUndefined();\n");
1323 push(@implContent, " $implClassName* imp = static_cast<$implClassName*>(castedThis->impl());\n");
1324 push(@implContent, " return checkNodeSecurity(exec, imp->contentDocument()) ? " . NativeToJSValue($attribute->signature, 0, $implClassName, $implClassNameForValueConversion, "imp->$implGetterFunctionName()", "castedThis") . " : jsUndefined();\n");
1327 push(@implContent, " UNUSED_PARAM(exec);\n");
1328 push(@implContent, " $implClassName* imp = static_cast<$implClassName*>(castedThis->impl());\n");
1329 push(@implContent, " if (EventListener* listener = imp->$implGetterFunctionName()) {\n");
1330 push(@implContent, " if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {\n");
1332 push(@implContent, " if (JSObject* jsFunction = jsListener->jsFunction(imp))\n");
1334 push(@implContent, " if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))\n");
1336 push(@implContent, " return jsFunction;\n");
1337 push(@implContent, " }\n");
1338 push(@implContent, " }\n");
1339 push(@implContent, " return jsNull();\n");
1345 push(@implContent, " return JS" . $constructorType . "::getConstructor(exec, castedThis);\n");
1347 push(@implContent, " UNUSED_PARAM(exec);\n");
1352 push(@implContent, " if (JSValue cachedValue = castedThis->getAnonymousValue(" . $className . "::" . $attribute->signature->name . "Slot))\n");
1353 push(@implContent, " return cachedValue;\n");
1356 push(@implContent, " $podType imp(*castedThis->impl());\n");
1358 push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $implClassName, "", "imp", "castedThis") . ";\n");
1360 push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $implClassName, "", "imp.$implGetterFunctionName()", "castedThis") . ";\n");
1363 push(@implContent, " $implClassName* imp = static_cast<$implClassName*>(castedThis->impl());\n");
1378 push(@implContent, " RefPtr<$type> obj = $jsType;\n");
1379 push(@implContent, " JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp);\n");
1381 push(@implContent, " JSValue result = $jsType;\n");
1385 push(@implContent, " castedThis->putAnonymousValue(" . $className . "::" . $attribute->signature->name . "Slot, result);\n") if ($attribute->signature->extendedAttributes->{"CachedAttribute"});
1386 push(@implContent, " return result;\n");
1389 push(@implContent, " ExceptionCode ec = 0;\n");
1391 push(@implContent, " $podType imp(*castedThis->impl());\n");
1392 push(@implContent, " JSC::JSValue result = " . NativeToJSValue($attribute->signature, 0, $implClassName, "", "imp.$implGetterFunctionName(ec)", "castedThis") . ";\n");
1394 push(@implContent, " $implClassName* imp = static_cast<$implClassName*>(castedThis->impl());\n");
1395 push(@implContent, " JSC::JSValue result = " . NativeToJSValue($attribute->signature, 0, $implClassName, $implClassNameForValueConversion, "imp->$implGetterFunctionName(ec)", "castedThis") . ";\n");
1398 push(@implContent, " setDOMException(exec, ec);\n");
1399 push(@implContent, " return result;\n");
1402 push(@implContent, "}\n");
1405 push(@implContent, "#endif\n");
1408 push(@implContent, "\n");
1414 push(@implContent, "JSValue ${constructorFunctionName}(ExecState* exec, const Identifier&, const PropertySlot& slot)\n");
1415 push(@implContent, "{\n");
1416 push(@implContent, " ${className}* domObject = static_cast<$className*>(asObject(slot.slotBase()));\n");
1417 push(@implContent, " return ${className}::getConstructor(exec, domObject->globalObject());\n");
1418 push(@implContent, "}\n");
1434 push(@implContent, "void ${className}::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)\n");
1435 push(@implContent, "{\n");
1437 push(@implContent, " bool ok;\n");
1438 push(@implContent, " unsigned index = propertyName.toUInt32(&ok, false);\n");
1439 push(@implContent, " if (ok) {\n");
1440 push(@implContent, " indexSetter(exec, index, value);\n");
1441 push(@implContent, " return;\n");
1442 push(@implContent, " }\n");
1445 push(@implContent, " if (putDelegate(exec, propertyName, value, slot))\n");
1446 push(@implContent, " return;\n");
1450 push(@implContent, " lookupPut<$className, Base>(exec, propertyName, value, " . hashTableAccessor($dataNode->extendedAttributes->{"NoStaticTables"}, $className) . ", this, slot);\n");
1452 push(@implContent, " Base::put(exec, propertyName, value, slot);\n");
1454 push(@implContent, "}\n\n");
1458 push(@implContent, "void ${className}::put(ExecState* exec, unsigned propertyName, JSValue value)\n");
1459 push(@implContent, "{\n");
1460 push(@implContent, " indexSetter(exec, propertyName, value);\n");
1461 push(@implContent, " return;\n");
1462 push(@implContent, "}\n\n");
1473 push(@implContent, "void ${putFunctionName}(ExecState* exec, JSObject* thisObject, JSValue value)\n");
1474 push(@implContent, "{\n");
1478 push(@implContent, " if (!static_cast<$className*>(thisObject)->allowsAccessFrom(exec))\n");
1480 push(@implContent, " if (!allowsAccessFromFrame(exec, static_cast<$className*>(thisObject)->impl()->frame()))\n");
1482 push(@implContent, " return;\n");
1486 push(@implContent, " static_cast<$className*>(thisObject)->set$implSetterFunctionName(exec, value);\n");
1489 push(@implContent, " UNUSED_PARAM(exec);\n");
1490 push(@implContent, " $implClassName* imp = static_cast<$implClassName*>(static_cast<$className*>(thisObject)->impl());\n");
1491 push(@implContent, " imp->set$implSetterFunctionName(createJSAttributeEventListener(exec, value, thisObject));\n");
1496 push(@implContent, " // Shadowing a built-in constructor\n");
1497 push(@implContent, " static_cast<$className*>(thisObject)->putDirect(Identifier(exec, \"$name\"), value);\n");
1499 push(@implContent, " // Shadowing a built-in object\n");
1500 push(@implContent, " static_cast<$className*>(thisObject)->putDirect(Identifier(exec, \"$name\"), value);\n");
1502 push(@implContent, " $className* castedThisObj = static_cast<$className*>(thisObject);\n");
1503 push(@implContent, " $implType* imp = static_cast<$implType*>(castedThisObj->impl());\n");
1505 push(@implContent, " $podType podImp(*imp);\n");
1507 push(@implContent, " podImp = " . JSValueToNative($attribute->signature, "value") . ";\n");
1509 push(@implContent, " podImp.set$implSetterFunctionName(" . JSValueToNative($attribute->signature, "value") . ");\n");
1511 push(@implContent, " imp->commitChange(podImp, castedThisObj);\n");
1514 push(@implContent, " ExceptionCode ec = 0;\n") if @{$attribute->setterExceptions};
1521 push(@implContent, " imp->setAttribute(${namespace}::${contentAttributeName}Attr, $nativeValue");
1523 push(@implContent, " imp->set$implSetterFunctionName($nativeValue");
1525 push(@implContent, ", ec") if @{$attribute->setterExceptions};
1526 push(@implContent, ");\n");
1527 push(@implContent, " setDOMException(exec, ec);\n") if @{$attribute->setterExceptions};
1529 push(@implContent, " JSSVGContextCache::propagateSVGDOMChange(castedThisObj, imp->associatedAttributeName());\n");
1534 push(@implContent, "}\n\n");
1542 push(@implContent, "void ${className}::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode)\n");
1543 push(@implContent, "{\n");
1545 push(@implContent, " for (unsigned i = 0; i < static_cast<${implClassName}*>(impl())->length(); ++i)\n");
1546 push(@implContent, " propertyNames.add(Identifier::from(exec, i));\n");
1548 push(@implContent, " Base::getOwnPropertyNames(exec, propertyNames, mode);\n");
1549 push(@implContent, "}\n\n");
1553 push(@implContent, "JSValue ${className}::getConstructor(ExecState* exec, JSGlobalObject* globalObject)\n{\n");
1554 push(@implContent, " return getDOMConstructor<${className}Constructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));\n");
1555 push(@implContent, "}\n\n");
1566 push(@implContent, "JSValue JSC_HOST_CALL ${functionName}(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)\n");
1567 push(@implContent, "{\n");
1568 push(@implContent, " UNUSED_PARAM(args);\n");
1573 push(@implContent, " $className* castedThisObj = toJSDOMWindow(thisValue.toThisObject(exec));\n");
1574 push(@implContent, " if (!castedThisObj)\n");
1575 push(@implContent, " return throwError(exec, TypeError);\n");
1577 push(@implContent, " $className* castedThisObj = to${className}(thisValue.toThisObject(exec));\n");
1578 push(@implContent, " if (!castedThisObj)\n");
1579 push(@implContent, " return throwError(exec, TypeError);\n");
1581 push(@implContent, " if (!thisValue.inherits(&${className}::s_info))\n");
1582 push(@implContent, " return throwError(exec, TypeError);\n");
1583 push(@implContent, " $className* castedThisObj = static_cast<$className*>(asObject(thisValue));\n");
1588 push(@implContent, " if (!castedThisObj->allowsAccessFrom(exec))\n");
1589 push(@implContent, " return jsUndefined();\n");
1608 push(@implContent, " return castedThisObj->" . $functionImplementationName . "(exec, args);\n");
1612 push(@implContent, " return JSSVGPODListCustom::$functionImplementationName<$className, " . GetNativeType($svgPODListType)
1615 push(@implContent, " $implType* imp = static_cast<$implType*>(castedThisObj->impl());\n");
1616 push(@implContent, " $podType podImp(*imp);\n") if $podType;
1621 push(@implContent, " if (args.size() < $numParameters)\n");
1622 push(@implContent, " return jsUndefined();\n");
1626 push(@implContent, " ExceptionCode ec = 0;\n");
1630 push(@implContent, " if (!checkNodeSecurity(exec, imp->getSVGDocument(" . (@{$function->raisesExceptions} ? "ec" : "") .")))\n");
1631 push(@implContent, " return jsUndefined();\n");
1641 push(@implContent, " ScriptCallStack callStack(exec, args, $numParameters);\n");
1647 push(@implContent, "\n int argsCount = args.size();\n");
1652 push(@implContent, " if (argsCount < " . ($paramIndex + 1) . ") {\n");
1654 push(@implContent, " }\n\n");
1660 push(@implContent, " RefPtr<XPathNSResolver> customResolver;\n");
1661 push(@implContent, " XPathNSResolver* resolver = toXPathNSResolver(args.at($paramIndex));\n");
1662 push(@implContent, " if (!resolver) {\n");
1663 push(@implContent, " customResolver = JSCustomXPathNSResolver::create(exec, args.at($paramIndex));\n");
1664 push(@implContent, " if (exec->hadException())\n");
1665 push(@implContent, " return jsUndefined();\n");
1666 push(@implContent, " resolver = customResolver.get();\n");
1667 push(@implContent, " }\n");
1669 push(@implContent, " " . GetNativeTypeFromSignature($parameter) . " $name = " . JSValueToNative($parameter, "args.at($paramIndex)") . ";\n");
1676 push(@implContent, " if ($name < 0) {\n");
1677 push(@implContent, " setDOMException(exec, INDEX_SIZE_ERR);\n");
1678 push(@implContent, " return jsUndefined();\n");
1679 push(@implContent, " }\n");
1699 push(@implContent, "\n");
1702 push(@implContent, "}\n\n");
1707 push(@implContent, "// Constant getters\n\n");
1713 push(@implContent, "JSValue ${getter}(ExecState* exec, const Identifier&, const PropertySlot&)\n");
1714 push(@implContent, "{\n");
1715 push(@implContent, " return jsNumber(exec, static_cast<int>(" . $constant->value . "));\n");
1716 push(@implContent, "}\n\n");
1721 push(@implContent, "\nJSValue ${className}::indexGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)\n");
1722 push(@implContent, "{\n");
1723 push(@implContent, " ${className}* thisObj = static_cast<$className*>(asObject(slot.slotBase()));\n");
1726 push(@implContent, " return jsStringOrNull(exec, thisObj->impl()->item(slot.index()));\n");
1728 push(@implContent, " return toJS(exec, thisObj->globalObject(), static_cast<$implClassName*>(thisObj->impl())->item(slot.index()));\n");
1730 push(@implContent, "}\n");
1738 push(@implContent, "\nJSValue ${className}::getByIndex(ExecState* exec, unsigned index)\n");
1739 push(@implContent, "{\n");
1740 push(@implContent, " return jsNumber(exec, static_cast<$implClassName*>(impl())->item(index));\n");
1741 push(@implContent, "}\n");
1750 push(@implContent, "JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, JSSVGPODTypeWrapper<$podType>* object, SVGElement* context)\n");
1752 push(@implContent, "JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, $implType* object, SVGElement* context)\n");
1754 push(@implContent, "JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, $implType* object)\n");
1756 push(@implContent, "{\n");
1758 push(@implContent, " return getDOMObjectWrapper<$className, JSSVGPODTypeWrapper<$podType> >(exec, globalObject, object, context);\n");
1760 push(@implContent, " return getDOMObjectWrapper<$className>(exec, globalObject, object, context);\n");
1762 push(@implContent, " return getDOMObjectWrapper<$className>(exec, globalObject, object);\n");
1764 push(@implContent, "}\n");
1769 push(@implContent, "$podType to${interfaceName}(JSC::JSValue value)\n");
1771 push(@implContent, "$implClassName* to${interfaceName}(JSC::JSValue value)\n");
1774 push(@implContent, "{\n");
1776 push(@implContent, " return value.inherits(&${className}::s_info) ? " . ($podType ? "($podType) *" : "") . "static_cast<$className*>(asObject(value))->impl() : ");
1778 push(@implContent, "$podType();\n}\n");
1780 push(@implContent, "0;\n}\n");
1784 push(@implContent, "\n}\n");
1786 push(@implContent, "\n#endif // ${conditionalString}\n") if $conditional;
1811 push(@implContent, $indent . "$functionString;\n");
1812 push(@implContent, $indent . "setDOMException(exec, ec);\n") if @{$function->raisesExceptions};
1813 push
1814 push(@implContent, $indent . "return jsUndefined();\n");
1816 push(@implContent, "\n" . $indent . "JSC::JSValue result = " . NativeToJSValue($function->signature, 1, $implClassName, "", $functionString, "castedThisObj") . ";\n");
1817 push(@implContent, $indent . "setDOMException(exec, ec);\n") if @{$function->raisesExceptions};
1822 push(@implContent, $indent . "imp->commitChange(podImp, castedThisObj);\n");
1825 push(@implContent, $indent . "return result;\n");
2058 push @hashes, $object->GenerateHashValue($key);
2119 push(@implContent, "/* Hash table for prototype */\n");
2123 push(@implContent, "/* Hash table for constructor */\n");
2126 push(@implContent, "/* Hash table */\n");
2131 push(@implContent, "\nstatic const HashTableValue $nameEntries\[$count\] =\n\{\n");
2141 push(@implContent, "#if ${conditionalString}\n");
2143 push(@implContent, " { \"$key\", @$specials[$i], (intptr_t)@$value1[$i], (intptr_t)@$value2[$i] },\n");
2145 push(@implContent, "#endif\n");
2149 push(@implContent, " { 0, 0, 0, 0 }\n");
2150 push(@implContent, "};\n\n");
2153 push(@implContent, "static JSC_CONST_HASHTABLE HashTable $name =\n");
2154 push(@implContent, "#if ENABLE(PERFECT_HASH_SIZE)\n");
2155 push(@implContent, " { $perfectSizeMask, $nameEntries, 0 };\n");
2156 push(@implContent, "#else\n");
2157 push(@implContent, " { $compactSize, $compactSizeMask, $nameEntries, 0 };\n");
2158 push(@implContent, "#endif\n\n");
2229 push @includes, $include;
2251 push @includes, $include;