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

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

Issue 2292053003: [inspector] Build inspector under v8_enable_inspector build flag. (Closed)
Patch Set: owners 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698