X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..ef99ff287df9046eb88937225e0554eabb00e33c:/debugger/DebuggerActivation.cpp diff --git a/debugger/DebuggerActivation.cpp b/debugger/DebuggerActivation.cpp index eec2d6b..1340ff7 100644 --- a/debugger/DebuggerActivation.cpp +++ b/debugger/DebuggerActivation.cpp @@ -27,11 +27,11 @@ #include "DebuggerActivation.h" #include "JSActivation.h" -#include "Operations.h" +#include "JSCInlines.h" namespace JSC { -ASSERT_HAS_TRIVIAL_DESTRUCTOR(DebuggerActivation); +STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE(DebuggerActivation); const ClassInfo DebuggerActivation::s_info = { "DebuggerActivation", &Base::s_info, 0, 0, CREATE_METHOD_TABLE(DebuggerActivation) }; @@ -51,7 +51,7 @@ void DebuggerActivation::finishCreation(VM& vm, JSObject* activation) void DebuggerActivation::visitChildren(JSCell* cell, SlotVisitor& visitor) { DebuggerActivation* thisObject = jsCast(cell); - ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info); + ASSERT_GC_OBJECT_INHERITS(thisObject, info()); COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag); ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren()); @@ -65,9 +65,9 @@ String DebuggerActivation::className(const JSObject* object) return thisObject->m_activation->methodTable()->className(thisObject->m_activation.get()); } -bool DebuggerActivation::getOwnPropertySlot(JSCell* cell, ExecState* exec, PropertyName propertyName, PropertySlot& slot) +bool DebuggerActivation::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot) { - DebuggerActivation* thisObject = jsCast(cell); + DebuggerActivation* thisObject = jsCast(object); return thisObject->m_activation->methodTable()->getOwnPropertySlot(thisObject->m_activation.get(), exec, propertyName, slot); } @@ -77,12 +77,6 @@ void DebuggerActivation::put(JSCell* cell, ExecState* exec, PropertyName propert thisObject->m_activation->methodTable()->put(thisObject->m_activation.get(), exec, propertyName, value, slot); } -void DebuggerActivation::putDirectVirtual(JSObject* object, ExecState* exec, PropertyName propertyName, JSValue value, unsigned attributes) -{ - DebuggerActivation* thisObject = jsCast(object); - thisObject->m_activation->methodTable()->putDirectVirtual(thisObject->m_activation.get(), exec, propertyName, value, attributes); -} - bool DebuggerActivation::deleteProperty(JSCell* cell, ExecState* exec, PropertyName propertyName) { DebuggerActivation* thisObject = jsCast(cell); @@ -95,13 +89,7 @@ void DebuggerActivation::getOwnPropertyNames(JSObject* object, ExecState* exec, thisObject->m_activation->methodTable()->getPropertyNames(thisObject->m_activation.get(), exec, propertyNames, mode); } -bool DebuggerActivation::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, PropertyName propertyName, PropertyDescriptor& descriptor) -{ - DebuggerActivation* thisObject = jsCast(object); - return thisObject->m_activation->methodTable()->getOwnPropertyDescriptor(thisObject->m_activation.get(), exec, propertyName, descriptor); -} - -bool DebuggerActivation::defineOwnProperty(JSObject* object, ExecState* exec, PropertyName propertyName, PropertyDescriptor& descriptor, bool shouldThrow) +bool DebuggerActivation::defineOwnProperty(JSObject* object, ExecState* exec, PropertyName propertyName, const PropertyDescriptor& descriptor, bool shouldThrow) { DebuggerActivation* thisObject = jsCast(object); return thisObject->m_activation->methodTable()->defineOwnProperty(thisObject->m_activation.get(), exec, propertyName, descriptor, shouldThrow);