Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
index 744759324af9fdff10fc59c25344f0a04430c688..5671c5b53eae297b1ef9dd8fc3741f8c9ed9ac6b 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
@@ -474,7 +474,7 @@ void V8DebuggerAgentImpl::getBacktrace(ErrorString* errorString, OwnPtr<Array<Ca |
{ |
if (!assertPaused(errorString)) |
return; |
- m_pausedCallFrames = debugger().currentCallFrames(); |
+ m_pausedCallFrames.swap(debugger().currentCallFrames()); |
*callFrames = currentCallFrames(errorString); |
if (!*callFrames) |
return; |
@@ -649,8 +649,7 @@ void V8DebuggerAgentImpl::restartFrame(ErrorString* errorString, |
*errorString = "Internal error"; |
return; |
} |
- |
- m_pausedCallFrames = debugger().currentCallFrames(); |
+ m_pausedCallFrames.swap(debugger().currentCallFrames()); |
*newCallFrames = currentCallFrames(errorString); |
if (!*newCallFrames) |
@@ -1376,8 +1375,7 @@ V8DebuggerAgentImpl::SkipPauseRequest V8DebuggerAgentImpl::didPause(v8::Local<v8 |
return RequestContinue; |
ASSERT(m_pausedContext.IsEmpty()); |
- callFrames = debugger().currentCallFrames(); |
- m_pausedCallFrames.swap(callFrames); |
+ m_pausedCallFrames.swap(debugger().currentCallFrames()); |
m_pausedContext.Reset(m_isolate, context); |
v8::HandleScope handles(m_isolate); |