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 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5105 if (!library.IsNull()) { | 5105 if (!library.IsNull()) { |
5106 return Symbols::True().raw(); | 5106 return Symbols::True().raw(); |
5107 } | 5107 } |
5108 } | 5108 } |
5109 } | 5109 } |
5110 // Check for default VM provided values. If it was not overridden on the | 5110 // Check for default VM provided values. If it was not overridden on the |
5111 // command line. | 5111 // command line. |
5112 if (Symbols::DartIsVM().Equals(name)) { | 5112 if (Symbols::DartIsVM().Equals(name)) { |
5113 return Symbols::True().raw(); | 5113 return Symbols::True().raw(); |
5114 } | 5114 } |
| 5115 if (FLAG_causal_async_stacks) { |
| 5116 if (Symbols::DartDeveloperCausalAsyncStacks().Equals(name)) { |
| 5117 return Symbols::True().raw(); |
| 5118 } |
| 5119 } |
5115 } | 5120 } |
5116 return result.raw(); | 5121 return result.raw(); |
5117 } | 5122 } |
5118 | 5123 |
5119 | 5124 |
5120 RawString* Api::CallEnvironmentCallback(Thread* thread, const String& name) { | 5125 RawString* Api::CallEnvironmentCallback(Thread* thread, const String& name) { |
5121 Isolate* isolate = thread->isolate(); | 5126 Isolate* isolate = thread->isolate(); |
5122 Dart_EnvironmentCallback callback = isolate->environment_callback(); | 5127 Dart_EnvironmentCallback callback = isolate->environment_callback(); |
5123 String& result = String::Handle(thread->zone()); | 5128 String& result = String::Handle(thread->zone()); |
5124 if (callback != NULL) { | 5129 if (callback != NULL) { |
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6819 } | 6824 } |
6820 | 6825 |
6821 | 6826 |
6822 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { | 6827 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { |
6823 #ifndef PRODUCT | 6828 #ifndef PRODUCT |
6824 Profiler::DumpStackTrace(context); | 6829 Profiler::DumpStackTrace(context); |
6825 #endif | 6830 #endif |
6826 } | 6831 } |
6827 | 6832 |
6828 } // namespace dart | 6833 } // namespace dart |
OLD | NEW |