WebCore/generated/JSIDBObjectStoreRequest.cpp
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 /*
       
     2     This file is part of the WebKit open source project.
       
     3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Library General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Library General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Library General Public License
       
    16     along with this library; see the file COPYING.LIB.  If not, write to
       
    17     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
       
    18     Boston, MA 02110-1301, USA.
       
    19 */
       
    20 
       
    21 #include "config.h"
       
    22 
       
    23 #if ENABLE(INDEXED_DATABASE)
       
    24 
       
    25 #include "JSIDBObjectStoreRequest.h"
       
    26 
       
    27 #include "DOMStringList.h"
       
    28 #include "IDBBindingUtilities.h"
       
    29 #include "IDBIndexRequest.h"
       
    30 #include "IDBKey.h"
       
    31 #include "IDBObjectStoreRequest.h"
       
    32 #include "IDBRequest.h"
       
    33 #include "JSDOMStringList.h"
       
    34 #include "JSIDBIndexRequest.h"
       
    35 #include "JSIDBRequest.h"
       
    36 #include "KURL.h"
       
    37 #include "SerializedScriptValue.h"
       
    38 #include <runtime/Error.h>
       
    39 #include <runtime/JSString.h>
       
    40 #include <wtf/GetPtr.h>
       
    41 
       
    42 using namespace JSC;
       
    43 
       
    44 namespace WebCore {
       
    45 
       
    46 ASSERT_CLASS_FITS_IN_CELL(JSIDBObjectStoreRequest);
       
    47 
       
    48 /* Hash table */
       
    49 #if ENABLE(JIT)
       
    50 #define THUNK_GENERATOR(generator) , generator
       
    51 #else
       
    52 #define THUNK_GENERATOR(generator)
       
    53 #endif
       
    54 
       
    55 static const HashTableValue JSIDBObjectStoreRequestTableValues[5] =
       
    56 {
       
    57     { "name", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBObjectStoreRequestName), (intptr_t)0 THUNK_GENERATOR(0) },
       
    58     { "keyPath", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBObjectStoreRequestKeyPath), (intptr_t)0 THUNK_GENERATOR(0) },
       
    59     { "indexNames", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBObjectStoreRequestIndexNames), (intptr_t)0 THUNK_GENERATOR(0) },
       
    60     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBObjectStoreRequestConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    61     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    62 };
       
    63 
       
    64 #undef THUNK_GENERATOR
       
    65 static JSC_CONST_HASHTABLE HashTable JSIDBObjectStoreRequestTable = { 10, 7, JSIDBObjectStoreRequestTableValues, 0 };
       
    66 /* Hash table for constructor */
       
    67 #if ENABLE(JIT)
       
    68 #define THUNK_GENERATOR(generator) , generator
       
    69 #else
       
    70 #define THUNK_GENERATOR(generator)
       
    71 #endif
       
    72 
       
    73 static const HashTableValue JSIDBObjectStoreRequestConstructorTableValues[1] =
       
    74 {
       
    75     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    76 };
       
    77 
       
    78 #undef THUNK_GENERATOR
       
    79 static JSC_CONST_HASHTABLE HashTable JSIDBObjectStoreRequestConstructorTable = { 1, 0, JSIDBObjectStoreRequestConstructorTableValues, 0 };
       
    80 class JSIDBObjectStoreRequestConstructor : public DOMConstructorObject {
       
    81 public:
       
    82     JSIDBObjectStoreRequestConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    83 
       
    84     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    85     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    86     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    87     static const JSC::ClassInfo s_info;
       
    88     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    89     {
       
    90         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    91     }
       
    92 protected:
       
    93     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
    94 };
       
    95 
       
    96 const ClassInfo JSIDBObjectStoreRequestConstructor::s_info = { "IDBObjectStoreRequestConstructor", 0, &JSIDBObjectStoreRequestConstructorTable, 0 };
       
    97 
       
    98 JSIDBObjectStoreRequestConstructor::JSIDBObjectStoreRequestConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
    99     : DOMConstructorObject(JSIDBObjectStoreRequestConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   100 {
       
   101     putDirect(exec->propertyNames().prototype, JSIDBObjectStoreRequestPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   102 }
       
   103 
       
   104 bool JSIDBObjectStoreRequestConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   105 {
       
   106     return getStaticValueSlot<JSIDBObjectStoreRequestConstructor, DOMObject>(exec, &JSIDBObjectStoreRequestConstructorTable, this, propertyName, slot);
       
   107 }
       
   108 
       
   109 bool JSIDBObjectStoreRequestConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   110 {
       
   111     return getStaticValueDescriptor<JSIDBObjectStoreRequestConstructor, DOMObject>(exec, &JSIDBObjectStoreRequestConstructorTable, this, propertyName, descriptor);
       
   112 }
       
   113 
       
   114 /* Hash table for prototype */
       
   115 #if ENABLE(JIT)
       
   116 #define THUNK_GENERATOR(generator) , generator
       
   117 #else
       
   118 #define THUNK_GENERATOR(generator)
       
   119 #endif
       
   120 
       
   121 static const HashTableValue JSIDBObjectStoreRequestPrototypeTableValues[8] =
       
   122 {
       
   123     { "get", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsIDBObjectStoreRequestPrototypeFunctionGet), (intptr_t)1 THUNK_GENERATOR(0) },
       
   124     { "add", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsIDBObjectStoreRequestPrototypeFunctionAdd), (intptr_t)2 THUNK_GENERATOR(0) },
       
   125     { "put", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsIDBObjectStoreRequestPrototypeFunctionPut), (intptr_t)2 THUNK_GENERATOR(0) },
       
   126     { "remove", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsIDBObjectStoreRequestPrototypeFunctionRemove), (intptr_t)1 THUNK_GENERATOR(0) },
       
   127     { "createIndex", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsIDBObjectStoreRequestPrototypeFunctionCreateIndex), (intptr_t)3 THUNK_GENERATOR(0) },
       
   128     { "index", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsIDBObjectStoreRequestPrototypeFunctionIndex), (intptr_t)1 THUNK_GENERATOR(0) },
       
   129     { "removeIndex", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsIDBObjectStoreRequestPrototypeFunctionRemoveIndex), (intptr_t)1 THUNK_GENERATOR(0) },
       
   130     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   131 };
       
   132 
       
   133 #undef THUNK_GENERATOR
       
   134 static JSC_CONST_HASHTABLE HashTable JSIDBObjectStoreRequestPrototypeTable = { 16, 15, JSIDBObjectStoreRequestPrototypeTableValues, 0 };
       
   135 const ClassInfo JSIDBObjectStoreRequestPrototype::s_info = { "IDBObjectStoreRequestPrototype", 0, &JSIDBObjectStoreRequestPrototypeTable, 0 };
       
   136 
       
   137 JSObject* JSIDBObjectStoreRequestPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   138 {
       
   139     return getDOMPrototype<JSIDBObjectStoreRequest>(exec, globalObject);
       
   140 }
       
   141 
       
   142 bool JSIDBObjectStoreRequestPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   143 {
       
   144     return getStaticFunctionSlot<JSObject>(exec, &JSIDBObjectStoreRequestPrototypeTable, this, propertyName, slot);
       
   145 }
       
   146 
       
   147 bool JSIDBObjectStoreRequestPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   148 {
       
   149     return getStaticFunctionDescriptor<JSObject>(exec, &JSIDBObjectStoreRequestPrototypeTable, this, propertyName, descriptor);
       
   150 }
       
   151 
       
   152 const ClassInfo JSIDBObjectStoreRequest::s_info = { "IDBObjectStoreRequest", 0, &JSIDBObjectStoreRequestTable, 0 };
       
   153 
       
   154 JSIDBObjectStoreRequest::JSIDBObjectStoreRequest(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<IDBObjectStoreRequest> impl)
       
   155     : DOMObjectWithGlobalPointer(structure, globalObject)
       
   156     , m_impl(impl)
       
   157 {
       
   158 }
       
   159 
       
   160 JSIDBObjectStoreRequest::~JSIDBObjectStoreRequest()
       
   161 {
       
   162     forgetDOMObject(this, impl());
       
   163 }
       
   164 
       
   165 JSObject* JSIDBObjectStoreRequest::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   166 {
       
   167     return new (exec) JSIDBObjectStoreRequestPrototype(globalObject, JSIDBObjectStoreRequestPrototype::createStructure(globalObject->objectPrototype()));
       
   168 }
       
   169 
       
   170 bool JSIDBObjectStoreRequest::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   171 {
       
   172     return getStaticValueSlot<JSIDBObjectStoreRequest, Base>(exec, &JSIDBObjectStoreRequestTable, this, propertyName, slot);
       
   173 }
       
   174 
       
   175 bool JSIDBObjectStoreRequest::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   176 {
       
   177     return getStaticValueDescriptor<JSIDBObjectStoreRequest, Base>(exec, &JSIDBObjectStoreRequestTable, this, propertyName, descriptor);
       
   178 }
       
   179 
       
   180 JSValue jsIDBObjectStoreRequestName(ExecState* exec, JSValue slotBase, const Identifier&)
       
   181 {
       
   182     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(slotBase));
       
   183     UNUSED_PARAM(exec);
       
   184     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   185     JSValue result = jsString(exec, imp->name());
       
   186     return result;
       
   187 }
       
   188 
       
   189 JSValue jsIDBObjectStoreRequestKeyPath(ExecState* exec, JSValue slotBase, const Identifier&)
       
   190 {
       
   191     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(slotBase));
       
   192     UNUSED_PARAM(exec);
       
   193     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   194     JSValue result = jsStringOrNull(exec, imp->keyPath());
       
   195     return result;
       
   196 }
       
   197 
       
   198 JSValue jsIDBObjectStoreRequestIndexNames(ExecState* exec, JSValue slotBase, const Identifier&)
       
   199 {
       
   200     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(slotBase));
       
   201     UNUSED_PARAM(exec);
       
   202     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   203     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->indexNames()));
       
   204     return result;
       
   205 }
       
   206 
       
   207 JSValue jsIDBObjectStoreRequestConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   208 {
       
   209     JSIDBObjectStoreRequest* domObject = static_cast<JSIDBObjectStoreRequest*>(asObject(slotBase));
       
   210     return JSIDBObjectStoreRequest::getConstructor(exec, domObject->globalObject());
       
   211 }
       
   212 JSValue JSIDBObjectStoreRequest::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   213 {
       
   214     return getDOMConstructor<JSIDBObjectStoreRequestConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   215 }
       
   216 
       
   217 EncodedJSValue JSC_HOST_CALL jsIDBObjectStoreRequestPrototypeFunctionGet(ExecState* exec)
       
   218 {
       
   219     JSValue thisValue = exec->hostThisValue();
       
   220     if (!thisValue.inherits(&JSIDBObjectStoreRequest::s_info))
       
   221         return throwVMTypeError(exec);
       
   222     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(thisValue));
       
   223     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   224     ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
       
   225     if (!scriptContext)
       
   226         return JSValue::encode(jsUndefined());
       
   227     RefPtr<IDBKey> key = createIDBKeyFromValue(exec, exec->argument(0));
       
   228 
       
   229 
       
   230     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->get(scriptContext, key)));
       
   231     return JSValue::encode(result);
       
   232 }
       
   233 
       
   234 EncodedJSValue JSC_HOST_CALL jsIDBObjectStoreRequestPrototypeFunctionAdd(ExecState* exec)
       
   235 {
       
   236     JSValue thisValue = exec->hostThisValue();
       
   237     if (!thisValue.inherits(&JSIDBObjectStoreRequest::s_info))
       
   238         return throwVMTypeError(exec);
       
   239     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(thisValue));
       
   240     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   241     ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
       
   242     if (!scriptContext)
       
   243         return JSValue::encode(jsUndefined());
       
   244     RefPtr<SerializedScriptValue> value = SerializedScriptValue::create(exec, exec->argument(0));
       
   245 
       
   246     int argsCount = exec->argumentCount();
       
   247     if (argsCount < 2) {
       
   248 
       
   249         JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->add(scriptContext, value)));
       
   250         return JSValue::encode(result);
       
   251     }
       
   252 
       
   253     RefPtr<IDBKey> key = createIDBKeyFromValue(exec, exec->argument(1));
       
   254 
       
   255 
       
   256     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->add(scriptContext, value, key)));
       
   257     return JSValue::encode(result);
       
   258 }
       
   259 
       
   260 EncodedJSValue JSC_HOST_CALL jsIDBObjectStoreRequestPrototypeFunctionPut(ExecState* exec)
       
   261 {
       
   262     JSValue thisValue = exec->hostThisValue();
       
   263     if (!thisValue.inherits(&JSIDBObjectStoreRequest::s_info))
       
   264         return throwVMTypeError(exec);
       
   265     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(thisValue));
       
   266     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   267     ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
       
   268     if (!scriptContext)
       
   269         return JSValue::encode(jsUndefined());
       
   270     RefPtr<SerializedScriptValue> value = SerializedScriptValue::create(exec, exec->argument(0));
       
   271 
       
   272     int argsCount = exec->argumentCount();
       
   273     if (argsCount < 2) {
       
   274 
       
   275         JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->put(scriptContext, value)));
       
   276         return JSValue::encode(result);
       
   277     }
       
   278 
       
   279     RefPtr<IDBKey> key = createIDBKeyFromValue(exec, exec->argument(1));
       
   280 
       
   281 
       
   282     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->put(scriptContext, value, key)));
       
   283     return JSValue::encode(result);
       
   284 }
       
   285 
       
   286 EncodedJSValue JSC_HOST_CALL jsIDBObjectStoreRequestPrototypeFunctionRemove(ExecState* exec)
       
   287 {
       
   288     JSValue thisValue = exec->hostThisValue();
       
   289     if (!thisValue.inherits(&JSIDBObjectStoreRequest::s_info))
       
   290         return throwVMTypeError(exec);
       
   291     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(thisValue));
       
   292     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   293     ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
       
   294     if (!scriptContext)
       
   295         return JSValue::encode(jsUndefined());
       
   296     RefPtr<IDBKey> key = createIDBKeyFromValue(exec, exec->argument(0));
       
   297 
       
   298 
       
   299     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->remove(scriptContext, key)));
       
   300     return JSValue::encode(result);
       
   301 }
       
   302 
       
   303 EncodedJSValue JSC_HOST_CALL jsIDBObjectStoreRequestPrototypeFunctionCreateIndex(ExecState* exec)
       
   304 {
       
   305     JSValue thisValue = exec->hostThisValue();
       
   306     if (!thisValue.inherits(&JSIDBObjectStoreRequest::s_info))
       
   307         return throwVMTypeError(exec);
       
   308     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(thisValue));
       
   309     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   310     ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
       
   311     if (!scriptContext)
       
   312         return JSValue::encode(jsUndefined());
       
   313     const String& name = ustringToString(exec->argument(0).toString(exec));
       
   314     const String& keyPath = valueToStringWithNullCheck(exec, exec->argument(1));
       
   315 
       
   316     int argsCount = exec->argumentCount();
       
   317     if (argsCount < 3) {
       
   318 
       
   319         JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->createIndex(scriptContext, name, keyPath)));
       
   320         return JSValue::encode(result);
       
   321     }
       
   322 
       
   323     bool unique = exec->argument(2).toBoolean(exec);
       
   324 
       
   325 
       
   326     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->createIndex(scriptContext, name, keyPath, unique)));
       
   327     return JSValue::encode(result);
       
   328 }
       
   329 
       
   330 EncodedJSValue JSC_HOST_CALL jsIDBObjectStoreRequestPrototypeFunctionIndex(ExecState* exec)
       
   331 {
       
   332     JSValue thisValue = exec->hostThisValue();
       
   333     if (!thisValue.inherits(&JSIDBObjectStoreRequest::s_info))
       
   334         return throwVMTypeError(exec);
       
   335     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(thisValue));
       
   336     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   337     const String& name = ustringToString(exec->argument(0).toString(exec));
       
   338 
       
   339 
       
   340     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->index(name)));
       
   341     return JSValue::encode(result);
       
   342 }
       
   343 
       
   344 EncodedJSValue JSC_HOST_CALL jsIDBObjectStoreRequestPrototypeFunctionRemoveIndex(ExecState* exec)
       
   345 {
       
   346     JSValue thisValue = exec->hostThisValue();
       
   347     if (!thisValue.inherits(&JSIDBObjectStoreRequest::s_info))
       
   348         return throwVMTypeError(exec);
       
   349     JSIDBObjectStoreRequest* castedThis = static_cast<JSIDBObjectStoreRequest*>(asObject(thisValue));
       
   350     IDBObjectStoreRequest* imp = static_cast<IDBObjectStoreRequest*>(castedThis->impl());
       
   351     ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
       
   352     if (!scriptContext)
       
   353         return JSValue::encode(jsUndefined());
       
   354     const String& name = ustringToString(exec->argument(0).toString(exec));
       
   355 
       
   356 
       
   357     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->removeIndex(scriptContext, name)));
       
   358     return JSValue::encode(result);
       
   359 }
       
   360 
       
   361 JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, IDBObjectStoreRequest* object)
       
   362 {
       
   363     return getDOMObjectWrapper<JSIDBObjectStoreRequest>(exec, globalObject, object);
       
   364 }
       
   365 IDBObjectStoreRequest* toIDBObjectStoreRequest(JSC::JSValue value)
       
   366 {
       
   367     return value.inherits(&JSIDBObjectStoreRequest::s_info) ? static_cast<JSIDBObjectStoreRequest*>(asObject(value))->impl() : 0;
       
   368 }
       
   369 
       
   370 }
       
   371 
       
   372 #endif // ENABLE(INDEXED_DATABASE)