summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/generated/JSFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSFile.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/generated/JSFile.cpp64
1 files changed, 40 insertions, 24 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSFile.cpp b/src/3rdparty/webkit/WebCore/generated/JSFile.cpp
index 59192af..d85bcdc 100644
--- a/src/3rdparty/webkit/WebCore/generated/JSFile.cpp
+++ b/src/3rdparty/webkit/WebCore/generated/JSFile.cpp
@@ -35,19 +35,21 @@ ASSERT_CLASS_FITS_IN_CELL(JSFile);
/* Hash table */
-static const HashTableValue JSFileTableValues[4] =
+static const HashTableValue JSFileTableValues[6] =
{
- { "fileName", DontDelete|ReadOnly, (intptr_t)jsFileFileName, (intptr_t)0 },
- { "fileSize", DontDelete|ReadOnly, (intptr_t)jsFileFileSize, (intptr_t)0 },
- { "constructor", DontEnum|ReadOnly, (intptr_t)jsFileConstructor, (intptr_t)0 },
+ { "name", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsFileName), (intptr_t)0 },
+ { "type", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsFileType), (intptr_t)0 },
+ { "fileName", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsFileFileName), (intptr_t)0 },
+ { "fileSize", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsFileFileSize), (intptr_t)0 },
+ { "constructor", DontEnum|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsFileConstructor), (intptr_t)0 },
{ 0, 0, 0, 0 }
};
static JSC_CONST_HASHTABLE HashTable JSFileTable =
#if ENABLE(PERFECT_HASH_SIZE)
- { 7, JSFileTableValues, 0 };
+ { 127, JSFileTableValues, 0 };
#else
- { 8, 7, JSFileTableValues, 0 };
+ { 17, 15, JSFileTableValues, 0 };
#endif
/* Hash table for constructor */
@@ -78,7 +80,7 @@ public:
static PassRefPtr<Structure> createStructure(JSValue proto)
{
- return Structure::create(proto, TypeInfo(ObjectType, StructureFlags));
+ return Structure::create(proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount);
}
protected:
@@ -118,22 +120,16 @@ JSObject* JSFilePrototype::self(ExecState* exec, JSGlobalObject* globalObject)
return getDOMPrototype<JSFile>(exec, globalObject);
}
-const ClassInfo JSFile::s_info = { "File", 0, &JSFileTable, 0 };
+const ClassInfo JSFile::s_info = { "File", &JSBlob::s_info, &JSFileTable, 0 };
JSFile::JSFile(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<File> impl)
- : DOMObjectWithGlobalPointer(structure, globalObject)
- , m_impl(impl)
+ : JSBlob(structure, globalObject, impl)
{
}
-JSFile::~JSFile()
-{
- forgetDOMObject(this, impl());
-}
-
JSObject* JSFile::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
{
- return new (exec) JSFilePrototype(JSFilePrototype::createStructure(globalObject->objectPrototype()));
+ return new (exec) JSFilePrototype(JSFilePrototype::createStructure(JSBlobPrototype::self(exec, globalObject)));
}
bool JSFile::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
@@ -146,25 +142,45 @@ bool JSFile::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propert
return getStaticValueDescriptor<JSFile, Base>(exec, &JSFileTable, this, propertyName, descriptor);
}
-JSValue jsFileFileName(ExecState* exec, const Identifier&, const PropertySlot& slot)
+JSValue jsFileName(ExecState* exec, JSValue slotBase, const Identifier&)
+{
+ JSFile* castedThis = static_cast<JSFile*>(asObject(slotBase));
+ UNUSED_PARAM(exec);
+ File* imp = static_cast<File*>(castedThis->impl());
+ JSValue result = jsString(exec, imp->name());
+ return result;
+}
+
+JSValue jsFileType(ExecState* exec, JSValue slotBase, const Identifier&)
+{
+ JSFile* castedThis = static_cast<JSFile*>(asObject(slotBase));
+ UNUSED_PARAM(exec);
+ File* imp = static_cast<File*>(castedThis->impl());
+ JSValue result = jsString(exec, imp->type());
+ return result;
+}
+
+JSValue jsFileFileName(ExecState* exec, JSValue slotBase, const Identifier&)
{
- JSFile* castedThis = static_cast<JSFile*>(asObject(slot.slotBase()));
+ JSFile* castedThis = static_cast<JSFile*>(asObject(slotBase));
UNUSED_PARAM(exec);
File* imp = static_cast<File*>(castedThis->impl());
- return jsString(exec, imp->fileName());
+ JSValue result = jsString(exec, imp->fileName());
+ return result;
}
-JSValue jsFileFileSize(ExecState* exec, const Identifier&, const PropertySlot& slot)
+JSValue jsFileFileSize(ExecState* exec, JSValue slotBase, const Identifier&)
{
- JSFile* castedThis = static_cast<JSFile*>(asObject(slot.slotBase()));
+ JSFile* castedThis = static_cast<JSFile*>(asObject(slotBase));
UNUSED_PARAM(exec);
File* imp = static_cast<File*>(castedThis->impl());
- return jsNumber(exec, imp->fileSize());
+ JSValue result = jsNumber(exec, imp->fileSize());
+ return result;
}
-JSValue jsFileConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
+JSValue jsFileConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
{
- JSFile* domObject = static_cast<JSFile*>(asObject(slot.slotBase()));
+ JSFile* domObject = static_cast<JSFile*>(asObject(slotBase));
return JSFile::getConstructor(exec, domObject->globalObject());
}
JSValue JSFile::getConstructor(ExecState* exec, JSGlobalObject* globalObject)