OLD | NEW |
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 6655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6666 DART_EXPORT bool Dart_IsPrecompiledRuntime() { | 6666 DART_EXPORT bool Dart_IsPrecompiledRuntime() { |
6667 #if defined(DART_PRECOMPILED_RUNTIME) | 6667 #if defined(DART_PRECOMPILED_RUNTIME) |
6668 return true; | 6668 return true; |
6669 #else | 6669 #else |
6670 return false; | 6670 return false; |
6671 #endif | 6671 #endif |
6672 } | 6672 } |
6673 | 6673 |
6674 | 6674 |
6675 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { | 6675 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { |
| 6676 #ifndef PRODUCT |
6676 Profiler::DumpStackTrace(context); | 6677 Profiler::DumpStackTrace(context); |
| 6678 #endif |
6677 } | 6679 } |
6678 | 6680 |
6679 } // namespace dart | 6681 } // namespace dart |
OLD | NEW |