diff options
Diffstat (limited to 'Source/JavaScriptCore/debugger')
-rw-r--r-- | Source/JavaScriptCore/debugger/Debugger.cpp | 4 | ||||
-rw-r--r-- | Source/JavaScriptCore/debugger/DebuggerActivation.cpp | 2 | ||||
-rw-r--r-- | Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/debugger/Debugger.cpp b/Source/JavaScriptCore/debugger/Debugger.cpp index 13d6ad8f3..ede8a9ba2 100644 --- a/Source/JavaScriptCore/debugger/Debugger.cpp +++ b/Source/JavaScriptCore/debugger/Debugger.cpp @@ -67,7 +67,7 @@ inline void Recompiler::operator()(JSCell* cell) if (!cell->inherits(&JSFunction::s_info)) return; - JSFunction* function = asFunction(cell); + JSFunction* function = jsCast<JSFunction*>(cell); if (function->executable()->isHostFunction()) return; @@ -75,7 +75,7 @@ inline void Recompiler::operator()(JSCell* cell) // Check if the function is already in the set - if so, // we've already retranslated it, nothing to do here. - if (!m_functionExecutables.add(executable).second) + if (!m_functionExecutables.add(executable).isNewEntry) return; ExecState* exec = function->scope()->globalObject->JSGlobalObject::globalExec(); diff --git a/Source/JavaScriptCore/debugger/DebuggerActivation.cpp b/Source/JavaScriptCore/debugger/DebuggerActivation.cpp index 529a02f16..2a83f5138 100644 --- a/Source/JavaScriptCore/debugger/DebuggerActivation.cpp +++ b/Source/JavaScriptCore/debugger/DebuggerActivation.cpp @@ -44,7 +44,7 @@ void DebuggerActivation::finishCreation(JSGlobalData& globalData, JSObject* acti Base::finishCreation(globalData); ASSERT(activation); ASSERT(activation->isActivationObject()); - m_activation.set(globalData, this, static_cast<JSActivation*>(activation)); + m_activation.set(globalData, this, jsCast<JSActivation*>(activation)); } void DebuggerActivation::visitChildren(JSCell* cell, SlotVisitor& visitor) diff --git a/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp b/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp index 6a8cdb2dc..a48e7d156 100644 --- a/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp +++ b/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp @@ -47,7 +47,7 @@ const UString* DebuggerCallFrame::functionName() const JSObject* function = m_callFrame->callee(); if (!function || !function->inherits(&JSFunction::s_info)) return 0; - return &asFunction(function)->name(m_callFrame); + return &jsCast<JSFunction*>(function)->name(m_callFrame); } UString DebuggerCallFrame::calculatedFunctionName() const |