27 #include "JSVariableObject.h" 51 QScriptActivationObject::QScriptActivationObject(JSC::ExecState *callFrame, JSC::JSObject *delegate)
52 :
JSC::JSVariableObject(callFrame->globalData().activationStructure,
65 return d_ptr()->
delegate->getOwnPropertySlot(exec, propertyName, slot);
66 return JSC::JSVariableObject::getOwnPropertySlot(exec, propertyName, slot);
72 return d_ptr()->
delegate->getOwnPropertyDescriptor(exec, propertyName, descriptor);
73 return JSC::JSVariableObject::getOwnPropertyDescriptor(exec, propertyName, descriptor);
79 d_ptr()->
delegate->getOwnPropertyNames(exec, propertyNames, mode);
82 return JSC::JSVariableObject::getOwnPropertyNames(exec, propertyNames, mode);
88 d_ptr()->
delegate->putWithAttributes(exec, propertyName, value, attributes);
92 if (symbolTablePutWithAttributes(propertyName, value, attributes))
95 JSC::PutPropertySlot slot;
96 JSObject::putWithAttributes(exec, propertyName, value, attributes,
true, slot);
105 JSC::JSVariableObject::put(exec, propertyName, value, slot);
114 JSC::JSVariableObject::put(exec, propertyName, value);
120 return d_ptr()->
delegate->deleteProperty(exec, propertyName);
121 return JSC::JSVariableObject::deleteProperty(exec, propertyName);
127 d_ptr()->
delegate->defineGetter(exec, propertyName, getterFunction);
129 JSC::JSVariableObject::defineGetter(exec, propertyName, getterFunction);
135 d_ptr()->
delegate->defineSetter(exec, propertyName, setterFunction);
137 JSC::JSVariableObject::defineSetter(exec, propertyName, setterFunction);
144 return JSC::JSVariableObject::lookupGetter(exec, propertyName);
151 return JSC::JSVariableObject::lookupSetter(exec, propertyName);
virtual JSC::JSValue lookupGetter(JSC::ExecState *, const JSC::Identifier &propertyName)
static mach_timebase_info_data_t info
#define QT_END_NAMESPACE
This macro expands to.
JSC::JSObject * delegate() const
ASSERT_CLASS_FITS_IN_CELL(::QScript::QScriptActivationObject)
virtual JSC::JSValue lookupSetter(JSC::ExecState *, const JSC::Identifier &propertyName)
virtual void put(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::JSValue value, JSC::PutPropertySlot &)
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define QT_PREPEND_NAMESPACE(name)
This macro qualifies identifier with the full namespace.
virtual void putWithAttributes(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue value, unsigned attributes)
QScriptActivationObjectData * d_ptr() const
virtual ~QScriptActivationObject()
virtual bool getOwnPropertyDescriptor(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertyDescriptor &)
virtual void defineGetter(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::JSObject *getterFunction)
virtual bool getOwnPropertySlot(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertySlot &)
virtual void defineSetter(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::JSObject *setterFunction)
virtual bool deleteProperty(JSC::ExecState *, const JSC::Identifier &propertyName)
virtual void getOwnPropertyNames(JSC::ExecState *, JSC::PropertyNameArray &, JSC::EnumerationMode mode=JSC::ExcludeDontEnumProperties)
Represent a scope for native function call.