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: runtime/vm/dart_api_impl.cc

Issue 2514113002: Dump stack trace on segfault in the VM. (Closed)
Patch Set: fix build Created 4 years, 1 month 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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "lib/stacktrace.h" 10 #include "lib/stacktrace.h"
(...skipping 6586 matching lines...) Expand 10 before | Expand all | Expand 10 after
6597 6597
6598 6598
6599 DART_EXPORT bool Dart_IsPrecompiledRuntime() { 6599 DART_EXPORT bool Dart_IsPrecompiledRuntime() {
6600 #if defined(DART_PRECOMPILED_RUNTIME) 6600 #if defined(DART_PRECOMPILED_RUNTIME)
6601 return true; 6601 return true;
6602 #else 6602 #else
6603 return false; 6603 return false;
6604 #endif 6604 #endif
6605 } 6605 }
6606 6606
6607
6608 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6609 Profiler::DumpStackTrace(context);
6610 }
6611
6607 } // namespace dart 6612 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698