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/V8StackTraceImpl.h" | 5 #include "src/inspector/V8StackTraceImpl.h" |
6 | 6 |
7 #include "src/inspector/StringUtil.h" | 7 #include "src/inspector/StringUtil.h" |
8 #include "src/inspector/V8Debugger.h" | 8 #include "src/inspector/V8Debugger.h" |
9 #include "src/inspector/protocol/Protocol.h" | 9 #include "src/inspector/protocol/Protocol.h" |
10 | 10 |
11 #include <v8-debug.h> | 11 #include "include/v8-debug.h" |
12 #include <v8-profiler.h> | 12 #include "include/v8-profiler.h" |
13 #include <v8-version.h> | 13 #include "include/v8-version.h" |
14 | 14 |
15 namespace v8_inspector { | 15 namespace v8_inspector { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 static const v8::StackTrace::StackTraceOptions stackTraceOptions = | 19 static const v8::StackTrace::StackTraceOptions stackTraceOptions = |
20 static_cast<v8::StackTrace::StackTraceOptions>( | 20 static_cast<v8::StackTrace::StackTraceOptions>( |
21 v8::StackTrace::kLineNumber | v8::StackTrace::kColumnOffset | | 21 v8::StackTrace::kLineNumber | v8::StackTrace::kColumnOffset | |
22 v8::StackTrace::kScriptId | v8::StackTrace::kScriptNameOrSourceURL | | 22 v8::StackTrace::kScriptId | v8::StackTrace::kScriptNameOrSourceURL | |
23 v8::StackTrace::kFunctionName); | 23 v8::StackTrace::kFunctionName); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 stackTrace.append(String16::fromInteger(frame.lineNumber())); | 266 stackTrace.append(String16::fromInteger(frame.lineNumber())); |
267 stackTrace.append(':'); | 267 stackTrace.append(':'); |
268 stackTrace.append(String16::fromInteger(frame.columnNumber())); | 268 stackTrace.append(String16::fromInteger(frame.columnNumber())); |
269 stackTrace.append(')'); | 269 stackTrace.append(')'); |
270 } | 270 } |
271 String16 string = stackTrace.toString(); | 271 String16 string = stackTrace.toString(); |
272 return StringBufferImpl::adopt(string); | 272 return StringBufferImpl::adopt(string); |
273 } | 273 } |
274 | 274 |
275 } // namespace v8_inspector | 275 } // namespace v8_inspector |
OLD | NEW |