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