本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例8: getPrototype
JSValue JSProxy::getPrototype(JSObject* object, ExecState* exec)
{
JSProxy* thisObject = jsCast<JSProxy*>(object);
return thisObject->target()->methodTable(exec->vm())->getPrototype(thisObject->target(), exec);
}
示例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);
}
示例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());
}
示例11: preventExtensions
bool JSProxy::preventExtensions(JSObject* object, ExecState* exec)
{
JSProxy* thisObject = jsCast<JSProxy*>(object);
return thisObject->target()->methodTable(exec->vm())->preventExtensions(thisObject->target(), exec);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}