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

Side by Side Diff: src/inspector/V8StackTraceImpl.cc

Issue 2343733002: [inspector] enabled presubmit for inspector sub folder (Closed)
Patch Set: more fixes Created 4 years, 3 months 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 unified diff | Download patch
OLDNEW
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 <limits>
8
7 #include "src/inspector/StringUtil.h" 9 #include "src/inspector/StringUtil.h"
8 #include "src/inspector/V8Debugger.h" 10 #include "src/inspector/V8Debugger.h"
9 #include "src/inspector/protocol/Protocol.h" 11 #include "src/inspector/protocol/Protocol.h"
10 12
11 #include "include/v8-debug.h" 13 #include "include/v8-debug.h"
12 #include "include/v8-profiler.h" 14 #include "include/v8-profiler.h"
13 #include "include/v8-version.h" 15 #include "include/v8-version.h"
14 16
15 #include <limits>
16
17 namespace v8_inspector { 17 namespace v8_inspector {
18 18
19 namespace { 19 namespace {
20 20
21 static const v8::StackTrace::StackTraceOptions stackTraceOptions = 21 static const v8::StackTrace::StackTraceOptions stackTraceOptions =
22 static_cast<v8::StackTrace::StackTraceOptions>( 22 static_cast<v8::StackTrace::StackTraceOptions>(
23 v8::StackTrace::kLineNumber | v8::StackTrace::kColumnOffset | 23 v8::StackTrace::kLineNumber | v8::StackTrace::kColumnOffset |
24 v8::StackTrace::kScriptId | v8::StackTrace::kScriptNameOrSourceURL | 24 v8::StackTrace::kScriptId | v8::StackTrace::kScriptNameOrSourceURL |
25 v8::StackTrace::kFunctionName); 25 v8::StackTrace::kFunctionName);
26 26
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 stackTrace.append(String16::fromInteger(frame.lineNumber())); 268 stackTrace.append(String16::fromInteger(frame.lineNumber()));
269 stackTrace.append(':'); 269 stackTrace.append(':');
270 stackTrace.append(String16::fromInteger(frame.columnNumber())); 270 stackTrace.append(String16::fromInteger(frame.columnNumber()));
271 stackTrace.append(')'); 271 stackTrace.append(')');
272 } 272 }
273 String16 string = stackTrace.toString(); 273 String16 string = stackTrace.toString();
274 return StringBufferImpl::adopt(string); 274 return StringBufferImpl::adopt(string);
275 } 275 }
276 276
277 } // namespace v8_inspector 277 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698