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

Side by Side Diff: src/d8.cc

Issue 2248393002: Replace DumpBacktrace with Chromium's StackTrace implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Comments Created 4 years, 4 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
« no previous file with comments | « src/base/logging.cc ('k') | src/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5
6 // Defined when linking against shared lib on Windows. 6 // Defined when linking against shared lib on Windows.
7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED)
8 #define V8_SHARED 8 #define V8_SHARED
9 #endif 9 #endif
10 10
(...skipping 21 matching lines...) Expand all
32 #endif 32 #endif
33 33
34 #include "src/d8.h" 34 #include "src/d8.h"
35 #include "src/ostreams.h" 35 #include "src/ostreams.h"
36 36
37 #include "include/libplatform/libplatform.h" 37 #include "include/libplatform/libplatform.h"
38 #include "include/libplatform/v8-tracing.h" 38 #include "include/libplatform/v8-tracing.h"
39 #ifndef V8_SHARED 39 #ifndef V8_SHARED
40 #include "src/api.h" 40 #include "src/api.h"
41 #include "src/base/cpu.h" 41 #include "src/base/cpu.h"
42 #include "src/base/debug/stack_trace.h"
42 #include "src/base/logging.h" 43 #include "src/base/logging.h"
43 #include "src/base/platform/platform.h" 44 #include "src/base/platform/platform.h"
44 #include "src/base/sys-info.h" 45 #include "src/base/sys-info.h"
45 #include "src/basic-block-profiler.h" 46 #include "src/basic-block-profiler.h"
46 #include "src/interpreter/interpreter.h" 47 #include "src/interpreter/interpreter.h"
47 #include "src/snapshot/natives.h" 48 #include "src/snapshot/natives.h"
48 #include "src/utils.h" 49 #include "src/utils.h"
49 #include "src/v8.h" 50 #include "src/v8.h"
50 #endif // !V8_SHARED 51 #endif // !V8_SHARED
51 52
(...skipping 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 } 2532 }
2532 } 2533 }
2533 printf("}\n"); 2534 printf("}\n");
2534 #undef ROOT_LIST_CASE 2535 #undef ROOT_LIST_CASE
2535 } 2536 }
2536 #endif // !V8_SHARED 2537 #endif // !V8_SHARED
2537 2538
2538 2539
2539 int Shell::Main(int argc, char* argv[]) { 2540 int Shell::Main(int argc, char* argv[]) {
2540 std::ofstream trace_file; 2541 std::ofstream trace_file;
2542 #ifndef V8_SHARED
2543 v8::base::debug::EnableInProcessStackDumping();
2544 #endif
2541 #if (defined(_WIN32) || defined(_WIN64)) 2545 #if (defined(_WIN32) || defined(_WIN64))
2542 UINT new_flags = 2546 UINT new_flags =
2543 SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX; 2547 SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX;
2544 UINT existing_flags = SetErrorMode(new_flags); 2548 UINT existing_flags = SetErrorMode(new_flags);
2545 SetErrorMode(existing_flags | new_flags); 2549 SetErrorMode(existing_flags | new_flags);
2546 #if defined(_MSC_VER) 2550 #if defined(_MSC_VER)
2547 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); 2551 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE);
2548 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); 2552 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
2549 _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); 2553 _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE);
2550 _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); 2554 _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 } 2715 }
2712 2716
2713 } // namespace v8 2717 } // namespace v8
2714 2718
2715 2719
2716 #ifndef GOOGLE3 2720 #ifndef GOOGLE3
2717 int main(int argc, char* argv[]) { 2721 int main(int argc, char* argv[]) {
2718 return v8::Shell::Main(argc, argv); 2722 return v8::Shell::Main(argc, argv);
2719 } 2723 }
2720 #endif 2724 #endif
OLDNEW
« no previous file with comments | « src/base/logging.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698