当前位置: 首页>>代码示例>>C++>>正文


C++ JSProxy类代码示例

本文整理汇总了C++中JSProxy的典型用法代码示例。如果您正苦于以下问题:C++ JSProxy类的具体用法?C++ JSProxy怎么用?C++ JSProxy使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了JSProxy类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: getGenericPropertyNames

void JSProxy::getGenericPropertyNames(JSObject* object, ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    // Get *all* of the property names, not just the generic ones, since we skipped the structure
    // ones above.
    thisObject->target()->methodTable(exec->vm())->getPropertyNames(thisObject->target(), exec, propertyNames, mode);
}
开发者ID:caiolima,项目名称:webkit,代码行数:7,代码来源:JSProxy.cpp

示例2: visitChildren

void JSProxy::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSProxy* thisObject = jsCast<JSProxy*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);

    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());

    Base::visitChildren(thisObject, visitor);
    visitor.append(&thisObject->m_target);
}
开发者ID:dog-god,项目名称:iptv,代码行数:11,代码来源:JSProxy.cpp

示例3: deleteProperty

bool JSProxy::deleteProperty(JSCell* cell, ExecState* exec, PropertyName propertyName)
{
    JSProxy* thisObject = jsCast<JSProxy*>(cell);
    return thisObject->target()->methodTable(exec->vm())->deleteProperty(thisObject->target(), exec, propertyName);
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例4: defineOwnProperty

bool JSProxy::defineOwnProperty(JSObject* object, ExecState* exec, PropertyName propertyName, const PropertyDescriptor& descriptor, bool shouldThrow)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    return thisObject->target()->methodTable(exec->vm())->defineOwnProperty(thisObject->target(), exec, propertyName, descriptor, shouldThrow);
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例5: putByIndex

bool JSProxy::putByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, JSValue value, bool shouldThrow)
{
    JSProxy* thisObject = jsCast<JSProxy*>(cell);
    return thisObject->target()->methodTable(exec->vm())->putByIndex(thisObject->target(), exec, propertyName, value, shouldThrow);
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例6: put

bool JSProxy::put(JSCell* cell, ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)
{
    JSProxy* thisObject = jsCast<JSProxy*>(cell);
    return thisObject->target()->methodTable(exec->vm())->put(thisObject->target(), exec, propertyName, value, slot);
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例7: getOwnPropertySlotByIndex

bool JSProxy::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, unsigned propertyName, PropertySlot& slot)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    return thisObject->target()->methodTable(exec->vm())->getOwnPropertySlotByIndex(thisObject->target(), exec, propertyName, slot);
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例8: getPrototype

JSValue JSProxy::getPrototype(JSObject* object, ExecState* exec)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    return thisObject->target()->methodTable(exec->vm())->getPrototype(thisObject->target(), exec);
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例9: getOwnPropertyNames

void JSProxy::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    thisObject->target()->methodTable(exec->vm())->getOwnPropertyNames(thisObject->target(), exec, propertyNames, mode);
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例10: getEnumerableLength

uint32_t JSProxy::getEnumerableLength(ExecState* exec, JSObject* object)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    return thisObject->target()->methodTable(exec->vm())->getEnumerableLength(exec, thisObject->target());
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例11: preventExtensions

bool JSProxy::preventExtensions(JSObject* object, ExecState* exec)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    return thisObject->target()->methodTable(exec->vm())->preventExtensions(thisObject->target(), exec);
}
开发者ID:caiolima,项目名称:webkit,代码行数:5,代码来源:JSProxy.cpp

示例12: putDirectVirtual

void JSProxy::putDirectVirtual(JSObject* object, ExecState* exec, PropertyName propertyName, JSValue value, unsigned attributes)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    thisObject->target()->putDirectVirtual(thisObject->target(), exec, propertyName, value, attributes);
}
开发者ID:dog-god,项目名称:iptv,代码行数:5,代码来源:JSProxy.cpp

示例13: getOwnPropertyDescriptor

bool JSProxy::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, PropertyName propertyName, PropertyDescriptor& descriptor)
{
    JSProxy* thisObject = jsCast<JSProxy*>(object);
    return thisObject->target()->methodTable()->getOwnPropertyDescriptor(thisObject->target(), exec, propertyName, descriptor);
}
开发者ID:dog-god,项目名称:iptv,代码行数:5,代码来源:JSProxy.cpp

示例14: getOwnPropertySlot

bool JSProxy::getOwnPropertySlot(JSCell* cell, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
{
    JSProxy* thisObject = jsCast<JSProxy*>(cell);
    return thisObject->target()->methodTable()->getOwnPropertySlot(thisObject->target(), exec, propertyName, slot);
}
开发者ID:dog-god,项目名称:iptv,代码行数:5,代码来源:JSProxy.cpp

示例15: deletePropertyByIndex

bool JSProxy::deletePropertyByIndex(JSCell* cell, ExecState* exec, unsigned propertyName)
{
    JSProxy* thisObject = jsCast<JSProxy*>(cell);
    return thisObject->target()->methodTable()->deletePropertyByIndex(thisObject->target(), exec, propertyName);
}
开发者ID:dog-god,项目名称:iptv,代码行数:5,代码来源:JSProxy.cpp


注:本文中的JSProxy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。