X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..HEAD:/inspector/ScriptCallStack.cpp diff --git a/inspector/ScriptCallStack.cpp b/inspector/ScriptCallStack.cpp index 9b3cca1..49b0719 100644 --- a/inspector/ScriptCallStack.cpp +++ b/inspector/ScriptCallStack.cpp @@ -36,14 +36,14 @@ namespace Inspector { -PassRefPtr ScriptCallStack::create() +Ref ScriptCallStack::create() { - return adoptRef(new ScriptCallStack); + return adoptRef(*new ScriptCallStack); } -PassRefPtr ScriptCallStack::create(Vector& frames) +Ref ScriptCallStack::create(Vector& frames) { - return adoptRef(new ScriptCallStack(frames)); + return adoptRef(*new ScriptCallStack(frames)); } ScriptCallStack::ScriptCallStack() @@ -106,14 +106,12 @@ bool ScriptCallStack::isEqual(ScriptCallStack* o) const return true; } -#if ENABLE(INSPECTOR) -PassRefPtr> ScriptCallStack::buildInspectorArray() const +Ref ScriptCallStack::buildInspectorArray() const { - RefPtr> frames = Inspector::TypeBuilder::Array::create(); + auto frames = Inspector::Protocol::Console::StackTrace::create(); for (size_t i = 0; i < m_frames.size(); i++) frames->addItem(m_frames.at(i).buildInspectorObject()); - return frames; + return WTF::move(frames); } -#endif } // namespace Inspector