diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSMessageChannel.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSMessageChannel.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSMessageChannel.cpp b/src/3rdparty/webkit/WebCore/generated/JSMessageChannel.cpp index ac725d4..47dfef6 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSMessageChannel.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSMessageChannel.cpp @@ -33,7 +33,7 @@ using namespace JSC; namespace WebCore { -ASSERT_CLASS_FITS_IN_CELL(JSMessageChannel) +ASSERT_CLASS_FITS_IN_CELL(JSMessageChannel); /* Hash table */ @@ -71,9 +71,9 @@ static const HashTable* getJSMessageChannelPrototypeTable(ExecState* exec) } const ClassInfo JSMessageChannelPrototype::s_info = { "MessageChannelPrototype", 0, 0, getJSMessageChannelPrototypeTable }; -JSObject* JSMessageChannelPrototype::self(ExecState* exec) +JSObject* JSMessageChannelPrototype::self(ExecState* exec, JSGlobalObject* globalObject) { - return getDOMPrototype<JSMessageChannel>(exec); + return getDOMPrototype<JSMessageChannel>(exec, globalObject); } static const HashTable* getJSMessageChannelTable(ExecState* exec) @@ -91,12 +91,11 @@ JSMessageChannel::JSMessageChannel(PassRefPtr<Structure> structure, PassRefPtr<M JSMessageChannel::~JSMessageChannel() { forgetDOMObject(*Heap::heap(this)->globalData(), m_impl.get()); - } -JSObject* JSMessageChannel::createPrototype(ExecState* exec) +JSObject* JSMessageChannel::createPrototype(ExecState* exec, JSGlobalObject* globalObject) { - return new (exec) JSMessageChannelPrototype(JSMessageChannelPrototype::createStructure(exec->lexicalGlobalObject()->objectPrototype())); + return new (exec) JSMessageChannelPrototype(JSMessageChannelPrototype::createStructure(globalObject->objectPrototype())); } bool JSMessageChannel::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -104,25 +103,27 @@ bool JSMessageChannel::getOwnPropertySlot(ExecState* exec, const Identifier& pro return getStaticValueSlot<JSMessageChannel, Base>(exec, getJSMessageChannelTable(exec), this, propertyName, slot); } -JSValuePtr jsMessageChannelPort1(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsMessageChannelPort1(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); MessageChannel* imp = static_cast<MessageChannel*>(static_cast<JSMessageChannel*>(asObject(slot.slotBase()))->impl()); return toJS(exec, WTF::getPtr(imp->port1())); } -JSValuePtr jsMessageChannelPort2(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsMessageChannelPort2(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); MessageChannel* imp = static_cast<MessageChannel*>(static_cast<JSMessageChannel*>(asObject(slot.slotBase()))->impl()); return toJS(exec, WTF::getPtr(imp->port2())); } -JSC::JSValuePtr toJS(JSC::ExecState* exec, MessageChannel* object) +JSC::JSValue toJS(JSC::ExecState* exec, MessageChannel* object) { return getDOMObjectWrapper<JSMessageChannel>(exec, object); } -MessageChannel* toMessageChannel(JSC::JSValuePtr value) +MessageChannel* toMessageChannel(JSC::JSValue value) { - return value->isObject(&JSMessageChannel::s_info) ? static_cast<JSMessageChannel*>(asObject(value))->impl() : 0; + return value.isObject(&JSMessageChannel::s_info) ? static_cast<JSMessageChannel*>(asObject(value))->impl() : 0; } } |