DebuggerActivation.cpp [plain text]
#include "config.h"
#include "DebuggerActivation.h"
#include "JSActivation.h"
namespace JSC {
DebuggerActivation::DebuggerActivation(JSObject* activation)
: JSObject(DebuggerActivation::createStructure(jsNull()))
{
ASSERT(activation);
ASSERT(activation->isActivationObject());
m_activation = static_cast<JSActivation*>(activation);
}
void DebuggerActivation::mark()
{
JSObject::mark();
if (m_activation && !m_activation->marked())
m_activation->mark();
}
UString DebuggerActivation::className() const
{
return m_activation->className();
}
bool DebuggerActivation::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
{
return m_activation->getOwnPropertySlot(exec, propertyName, slot);
}
void DebuggerActivation::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
{
m_activation->put(exec, propertyName, value, slot);
}
void DebuggerActivation::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValuePtr value, unsigned attributes)
{
m_activation->putWithAttributes(exec, propertyName, value, attributes);
}
bool DebuggerActivation::deleteProperty(ExecState* exec, const Identifier& propertyName)
{
return m_activation->deleteProperty(exec, propertyName);
}
void DebuggerActivation::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames)
{
m_activation->getPropertyNames(exec, propertyNames);
}
bool DebuggerActivation::getPropertyAttributes(JSC::ExecState* exec, const Identifier& propertyName, unsigned& attributes) const
{
return m_activation->getPropertyAttributes(exec, propertyName, attributes);
}
void DebuggerActivation::defineGetter(ExecState* exec, const Identifier& propertyName, JSObject* getterFunction)
{
m_activation->defineGetter(exec, propertyName, getterFunction);
}
void DebuggerActivation::defineSetter(ExecState* exec, const Identifier& propertyName, JSObject* setterFunction)
{
m_activation->defineSetter(exec, propertyName, setterFunction);
}
JSValuePtr DebuggerActivation::lookupGetter(ExecState* exec, const Identifier& propertyName)
{
return m_activation->lookupGetter(exec, propertyName);
}
JSValuePtr DebuggerActivation::lookupSetter(ExecState* exec, const Identifier& propertyName)
{
return m_activation->lookupSetter(exec, propertyName);
}
}