本文整理汇总了C++中JSTestTypedefs::impl方法的典型用法代码示例。如果您正苦于以下问题:C++ JSTestTypedefs::impl方法的具体用法?C++ JSTestTypedefs::impl怎么用?C++ JSTestTypedefs::impl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSTestTypedefs
的用法示例。
在下文中一共展示了JSTestTypedefs::impl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: finalize
void JSTestTypedefsOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
{
JSTestTypedefs* jsTestTypedefs = jsCast<JSTestTypedefs*>(handle.slot()->asCell());
DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context);
uncacheWrapper(world, &jsTestTypedefs->impl(), jsTestTypedefs);
jsTestTypedefs->releaseImpl();
}
示例2: setJSTestTypedefsStringAttrWithGetterException
void setJSTestTypedefsStringAttrWithGetterException(ExecState* exec, JSObject* thisObject, JSValue value)
{
UNUSED_PARAM(exec);
JSTestTypedefs* castedThis = jsCast<JSTestTypedefs*>(thisObject);
TestTypedefs& impl = castedThis->impl();
const String& nativeValue(value.isEmpty() ? String() : value.toString(exec)->value(exec));
if (exec->hadException())
return;
impl.setStringAttrWithGetterException(nativeValue);
}
示例3: setJSTestTypedefsAttrWithGetterException
void setJSTestTypedefsAttrWithGetterException(ExecState* exec, JSObject* thisObject, JSValue value)
{
UNUSED_PARAM(exec);
JSTestTypedefs* castedThis = jsCast<JSTestTypedefs*>(thisObject);
TestTypedefs& impl = castedThis->impl();
int nativeValue(toInt32(exec, value, NormalConversion));
if (exec->hadException())
return;
impl.setAttrWithGetterException(nativeValue);
}
示例4: setJSTestTypedefsImmutableSerializedScriptValue
void setJSTestTypedefsImmutableSerializedScriptValue(ExecState* exec, JSObject* thisObject, JSValue value)
{
UNUSED_PARAM(exec);
JSTestTypedefs* castedThis = jsCast<JSTestTypedefs*>(thisObject);
TestTypedefs& impl = castedThis->impl();
RefPtr<SerializedScriptValue> nativeValue(SerializedScriptValue::create(exec, value, 0, 0));
if (exec->hadException())
return;
impl.setImmutableSerializedScriptValue(nativeValue);
}
示例5: setJSTestTypedefsUnsignedLongLongAttr
void setJSTestTypedefsUnsignedLongLongAttr(ExecState* exec, JSObject* thisObject, JSValue value)
{
UNUSED_PARAM(exec);
JSTestTypedefs* castedThis = jsCast<JSTestTypedefs*>(thisObject);
TestTypedefs& impl = castedThis->impl();
unsigned long long nativeValue(toUInt64(exec, value, NormalConversion));
if (exec->hadException())
return;
impl.setUnsignedLongLongAttr(nativeValue);
}
示例6: jsTestTypedefsStringAttrWithSetterException
EncodedJSValue jsTestTypedefsStringAttrWithSetterException(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
UNUSED_PARAM(exec);
TestTypedefs& impl = castedThis->impl();
JSValue result = jsStringWithCache(exec, impl.stringAttrWithSetterException());
return JSValue::encode(result);
}
示例7: jsTestTypedefsImmutableSerializedScriptValue
EncodedJSValue jsTestTypedefsImmutableSerializedScriptValue(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
UNUSED_PARAM(exec);
TestTypedefs& impl = castedThis->impl();
JSValue result = impl.immutableSerializedScriptValue() ? impl.immutableSerializedScriptValue()->deserialize(exec, castedThis->globalObject(), 0) : jsNull();
return JSValue::encode(result);
}
示例8: jsTestTypedefsUnsignedLongLongAttr
EncodedJSValue jsTestTypedefsUnsignedLongLongAttr(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
UNUSED_PARAM(exec);
TestTypedefs& impl = castedThis->impl();
JSValue result = jsNumber(impl.unsignedLongLongAttr());
return JSValue::encode(result);
}
示例9: jsTestTypedefsPrototypeFunctionImmutablePointFunction
EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionImmutablePointFunction(ExecState* exec)
{
JSValue thisValue = exec->thisValue();
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
if (UNLIKELY(!castedThis))
return throwThisTypeError(*exec, "TestTypedefs", "immutablePointFunction");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
auto& impl = castedThis->impl();
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePointFunction())));
return JSValue::encode(result);
}
示例10: jsTestTypedefsAttrWithGetterException
EncodedJSValue jsTestTypedefsAttrWithGetterException(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
ExceptionCode ec = 0;
TestTypedefs& impl = castedThis->impl();
JSC::JSValue result = jsNumber(impl.attrWithGetterException(ec));
setDOMException(exec, ec);
return JSValue::encode(result);
}
示例11: jsTestTypedefsPrototypeFunctionMethodWithException
EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionMethodWithException(ExecState* exec)
{
JSValue thisValue = exec->thisValue();
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
if (UNLIKELY(!castedThis))
return throwThisTypeError(*exec, "TestTypedefs", "methodWithException");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
auto& impl = castedThis->impl();
ExceptionCode ec = 0;
impl.methodWithException(ec);
setDOMException(exec, ec);
return JSValue::encode(jsUndefined());
}
示例12: setJSTestTypedefsAttrWithGetterException
void setJSTestTypedefsAttrWithGetterException(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue encodedValue)
{
JSValue value = JSValue::decode(encodedValue);
UNUSED_PARAM(exec);
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
if (!castedThis) {
throwVMTypeError(exec);
return;
}
TestTypedefs& impl = castedThis->impl();
int nativeValue(toInt32(exec, value, NormalConversion));
if (exec->hadException())
return;
impl.setAttrWithGetterException(nativeValue);
}
示例13: setJSTestTypedefsImmutableSerializedScriptValue
void setJSTestTypedefsImmutableSerializedScriptValue(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue encodedValue)
{
JSValue value = JSValue::decode(encodedValue);
UNUSED_PARAM(exec);
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
if (!castedThis) {
throwVMTypeError(exec);
return;
}
TestTypedefs& impl = castedThis->impl();
RefPtr<SerializedScriptValue> nativeValue(SerializedScriptValue::create(exec, value, 0, 0));
if (exec->hadException())
return;
impl.setImmutableSerializedScriptValue(nativeValue);
}
示例14: setJSTestTypedefsStringAttrWithGetterException
void setJSTestTypedefsStringAttrWithGetterException(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue encodedValue)
{
JSValue value = JSValue::decode(encodedValue);
UNUSED_PARAM(exec);
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
if (!castedThis) {
throwVMTypeError(exec);
return;
}
TestTypedefs& impl = castedThis->impl();
const String& nativeValue(value.isEmpty() ? String() : value.toString(exec)->value(exec));
if (exec->hadException())
return;
impl.setStringAttrWithGetterException(nativeValue);
}
示例15: setJSTestTypedefsUnsignedLongLongAttr
void setJSTestTypedefsUnsignedLongLongAttr(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue encodedValue)
{
JSValue value = JSValue::decode(encodedValue);
UNUSED_PARAM(exec);
JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
if (!castedThis) {
throwVMTypeError(exec);
return;
}
TestTypedefs& impl = castedThis->impl();
unsigned long long nativeValue(toUInt64(exec, value, NormalConversion));
if (exec->hadException())
return;
impl.setUnsignedLongLongAttr(nativeValue);
}