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

Unified Diff: Source/core/inspector/ScriptCallStack.cpp

Issue 688623002: [Thread-safe] Remove TracedValue::setArray (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename to ScriptCallFrame::toTracedValue. 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
« no previous file with comments | « Source/core/inspector/ScriptCallStack.h ('k') | Source/platform/TracedValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ScriptCallStack.cpp
diff --git a/Source/core/inspector/ScriptCallStack.cpp b/Source/core/inspector/ScriptCallStack.cpp
index bb2117f56ecae475173cf3d86c93b28979aa77a3..1bd7b6b7a39befa06650f7f54d002838d0eb30c1 100644
--- a/Source/core/inspector/ScriptCallStack.cpp
+++ b/Source/core/inspector/ScriptCallStack.cpp
@@ -32,6 +32,7 @@
#include "core/inspector/ScriptCallStack.h"
#include "core/inspector/ScriptAsyncCallStack.h"
+#include "platform/TracedValue.h"
namespace blink {
@@ -76,6 +77,14 @@ PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > ScriptCallStack
return frames;
}
+void ScriptCallStack::toTracedValue(TracedValue* value, const char* name) const
+{
+ value->beginArray(name);
+ for (size_t i = 0; i < m_frames.size(); i++)
+ m_frames.at(i).toTracedValue(value);
+ value->endArray();
+}
+
void ScriptCallStack::trace(Visitor* visitor)
{
visitor->trace(m_asyncCallStack);
« no previous file with comments | « Source/core/inspector/ScriptCallStack.h ('k') | Source/platform/TracedValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698