Exemplo n.º 1
0
void JSTestEventConstructorOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
{
    JSTestEventConstructor* jsTestEventConstructor = jsCast<JSTestEventConstructor*>(handle.slot()->asCell());
    DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context);
    uncacheWrapper(world, &jsTestEventConstructor->impl(), jsTestEventConstructor);
    jsTestEventConstructor->releaseImpl();
}
Exemplo n.º 2
0
JSValue jsTestEventConstructorAttr2(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSTestEventConstructor* castedThis = static_cast<JSTestEventConstructor*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    TestEventConstructor* impl = static_cast<TestEventConstructor*>(castedThis->impl());
    JSValue result = jsString(exec, impl->attr2());
    return result;
}
Exemplo n.º 3
0
JSValue jsTestEventConstructorAttr2(ExecState* exec, JSValue slotBase, PropertyName)
{
    JSTestEventConstructor* castedThis = jsCast<JSTestEventConstructor*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    TestEventConstructor* impl = static_cast<TestEventConstructor*>(castedThis->impl());
    JSValue result = jsStringWithCache(exec, impl->attr2());
    return result;
}
Exemplo n.º 4
0
EncodedJSValue jsTestEventConstructorAttr2(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
{
    JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(slotBase));
    UNUSED_PARAM(exec);
    TestEventConstructor& impl = castedThis->impl();
    JSValue result = jsStringWithCache(exec, impl.attr2());
    return JSValue::encode(result);
}
Exemplo n.º 5
0
EncodedJSValue jsTestEventConstructorAttr2(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
{
    JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue));
    if (UNLIKELY(!castedThis)) {
        if (jsDynamicCast<JSTestEventConstructorPrototype*>(slotBase))
            return reportDeprecatedGetterError(*exec, "TestEventConstructor", "attr2");
        return throwGetterTypeError(*exec, "TestEventConstructor", "attr2");
    }
    TestEventConstructor& impl = castedThis->impl();
    JSValue result = jsStringWithCache(exec, impl.attr2());
    return JSValue::encode(result);
}
EncodedJSValue jsTestEventConstructorAttr1(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
{
    UNUSED_PARAM(state);
    UNUSED_PARAM(slotBase);
    UNUSED_PARAM(thisValue);
    JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue));
    if (UNLIKELY(!castedThis)) {
        if (jsDynamicCast<JSTestEventConstructorPrototype*>(slotBase))
            return reportDeprecatedGetterError(*state, "TestEventConstructor", "attr1");
        return throwGetterTypeError(*state, "TestEventConstructor", "attr1");
    }
    auto& impl = castedThis->wrapped();
    JSValue result = jsStringWithCache(state, impl.attr1());
    return JSValue::encode(result);
}
Exemplo n.º 7
0
static inline JSValue jsTestEventConstructorAttr3Getter(ExecState& state, JSTestEventConstructor& thisObject, ThrowScope& throwScope)
{
    UNUSED_PARAM(throwScope);
    UNUSED_PARAM(state);
    auto& impl = thisObject.wrapped();
    JSValue result = toJS<IDLDOMString>(state, impl.attr3());
    return result;
}
Exemplo n.º 8
0
JSValue jsTestEventConstructorConstructor(ExecState* exec, JSValue slotBase, PropertyName)
{
    JSTestEventConstructor* domObject = jsCast<JSTestEventConstructor*>(asObject(slotBase));
    return JSTestEventConstructor::getConstructor(exec, domObject->globalObject());
}
Exemplo n.º 9
0
JSValue jsTestEventConstructorConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSTestEventConstructor* domObject = static_cast<JSTestEventConstructor*>(asObject(slotBase));
    return JSTestEventConstructor::getConstructor(exec, domObject->globalObject());
}
Exemplo n.º 10
0
EncodedJSValue jsTestEventConstructorConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
{
    JSTestEventConstructor* domObject = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(slotBase));
    return JSValue::encode(JSTestEventConstructor::getConstructor(exec->vm(), domObject->globalObject()));
}