OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 "src/inspector/v8-stack-trace-impl.h" | 5 #include "src/inspector/v8-stack-trace-impl.h" |
6 | 6 |
7 #include "src/inspector/string-util.h" | 7 #include "src/inspector/string-util.h" |
8 #include "src/inspector/v8-debugger-agent-impl.h" | 8 #include "src/inspector/v8-debugger-agent-impl.h" |
9 #include "src/inspector/v8-debugger.h" | 9 #include "src/inspector/v8-debugger.h" |
10 #include "src/inspector/v8-inspector-impl.h" | 10 #include "src/inspector/v8-inspector-impl.h" |
11 | 11 |
12 #include "include/v8-debug.h" | |
13 #include "include/v8-version.h" | 12 #include "include/v8-version.h" |
14 | 13 |
15 namespace v8_inspector { | 14 namespace v8_inspector { |
16 | 15 |
17 namespace { | 16 namespace { |
18 | 17 |
19 static const v8::StackTrace::StackTraceOptions stackTraceOptions = | 18 static const v8::StackTrace::StackTraceOptions stackTraceOptions = |
20 static_cast<v8::StackTrace::StackTraceOptions>( | 19 static_cast<v8::StackTrace::StackTraceOptions>( |
21 v8::StackTrace::kLineNumber | v8::StackTrace::kColumnOffset | | 20 v8::StackTrace::kLineNumber | v8::StackTrace::kColumnOffset | |
22 v8::StackTrace::kScriptId | v8::StackTrace::kScriptNameOrSourceURL | | 21 v8::StackTrace::kScriptId | v8::StackTrace::kScriptNameOrSourceURL | |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 stackTrace.append(String16::fromInteger(frame.lineNumber())); | 297 stackTrace.append(String16::fromInteger(frame.lineNumber())); |
299 stackTrace.append(':'); | 298 stackTrace.append(':'); |
300 stackTrace.append(String16::fromInteger(frame.columnNumber())); | 299 stackTrace.append(String16::fromInteger(frame.columnNumber())); |
301 stackTrace.append(')'); | 300 stackTrace.append(')'); |
302 } | 301 } |
303 String16 string = stackTrace.toString(); | 302 String16 string = stackTrace.toString(); |
304 return StringBufferImpl::adopt(string); | 303 return StringBufferImpl::adopt(string); |
305 } | 304 } |
306 | 305 |
307 } // namespace v8_inspector | 306 } // namespace v8_inspector |
OLD | NEW |