OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "bindings/core/v8/SourceLocation.h" | 5 #include "bindings/core/v8/SourceLocation.h" |
6 | 6 |
7 #include "bindings/core/v8/V8BindingMacros.h" | 7 #include "bindings/core/v8/V8BindingMacros.h" |
8 #include "bindings/core/v8/V8PerIsolateData.h" | 8 #include "bindings/core/v8/V8PerIsolateData.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 value->setInteger("columnNumber", m_stackTrace->topColumnNumber()); | 153 value->setInteger("columnNumber", m_stackTrace->topColumnNumber()); |
154 value->endDictionary(); | 154 value->endDictionary(); |
155 value->endArray(); | 155 value->endArray(); |
156 } | 156 } |
157 | 157 |
158 std::unique_ptr<SourceLocation> SourceLocation::clone() const | 158 std::unique_ptr<SourceLocation> SourceLocation::clone() const |
159 { | 159 { |
160 return wrapUnique(new SourceLocation(m_url.isolatedCopy(), m_lineNumber, m_c
olumnNumber, m_stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId)); | 160 return wrapUnique(new SourceLocation(m_url.isolatedCopy(), m_lineNumber, m_c
olumnNumber, m_stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId)); |
161 } | 161 } |
162 | 162 |
163 std::unique_ptr<protocol::Runtime::API::StackTrace> SourceLocation::buildInspect
orObject() const | 163 std::unique_ptr<v8_inspector::protocol::Runtime::API::StackTrace> SourceLocation
::buildInspectorObject() const |
164 { | 164 { |
165 return m_stackTrace ? m_stackTrace->buildInspectorObject() : nullptr; | 165 return m_stackTrace ? m_stackTrace->buildInspectorObject() : nullptr; |
166 } | 166 } |
167 | 167 |
168 String SourceLocation::toString() const | 168 String SourceLocation::toString() const |
169 { | 169 { |
170 if (!m_stackTrace) | 170 if (!m_stackTrace) |
171 return String(); | 171 return String(); |
172 return toCoreString(m_stackTrace->toString()); | 172 return toCoreString(m_stackTrace->toString()); |
173 } | 173 } |
174 | 174 |
175 } // namespace blink | 175 } // namespace blink |
OLD | NEW |