Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: sky/engine/core/inspector/ScriptCallStack.cpp

Issue 727593004: Wire up the Inspector V8 Debugger (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/inspector/ScriptCallStack.cpp
diff --git a/sky/engine/core/inspector/ScriptCallStack.cpp b/sky/engine/core/inspector/ScriptCallStack.cpp
index ff3e7c79fbf1e3b069a1683b9d8124f325f64af5..def2ce6c44e28e9c3b470c91ebc5f16b34a110c2 100644
--- a/sky/engine/core/inspector/ScriptCallStack.cpp
+++ b/sky/engine/core/inspector/ScriptCallStack.cpp
@@ -68,9 +68,12 @@ void ScriptCallStack::setAsyncCallStack(PassRefPtr<ScriptAsyncCallStack> asyncCa
m_asyncCallStack = asyncCallStack;
}
-void ScriptCallStack::trace(Visitor* visitor)
+PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > ScriptCallStack::buildInspectorArray() const
{
- visitor->trace(m_asyncCallStack);
+ RefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > frames = TypeBuilder::Array<TypeBuilder::Console::CallFrame>::create();
+ for (size_t i = 0; i < m_frames.size(); i++)
+ frames->addItem(m_frames.at(i).buildInspectorObject());
+ return frames;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698