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 "lib/stacktrace.h" | 9 #include "lib/stacktrace.h" |
10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
(...skipping 5770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5781 if (ns.IsNull()) continue; | 5781 if (ns.IsNull()) continue; |
5782 importee = ns.library(); | 5782 importee = ns.library(); |
5783 importee_uri = importee.url(); | 5783 importee_uri = importee.url(); |
5784 if (importee_uri.StartsWith(scheme_vm)) { | 5784 if (importee_uri.StartsWith(scheme_vm)) { |
5785 result.Add(importer); | 5785 result.Add(importer); |
5786 result.Add(importee); | 5786 result.Add(importee); |
5787 } | 5787 } |
5788 } | 5788 } |
5789 } | 5789 } |
5790 | 5790 |
5791 return Api::NewHandle(T, Array::MakeArray(result)); | 5791 return Api::NewHandle(T, Array::MakeFixedLength(result)); |
5792 } | 5792 } |
5793 | 5793 |
5794 | 5794 |
5795 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, | 5795 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, |
5796 Dart_Handle url, | 5796 Dart_Handle url, |
5797 Dart_Handle resolved_url, | 5797 Dart_Handle resolved_url, |
5798 Dart_Handle source, | 5798 Dart_Handle source, |
5799 intptr_t line_offset, | 5799 intptr_t line_offset, |
5800 intptr_t column_offset) { | 5800 intptr_t column_offset) { |
5801 API_TIMELINE_DURATION; | 5801 API_TIMELINE_DURATION; |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6966 } | 6966 } |
6967 | 6967 |
6968 | 6968 |
6969 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { | 6969 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { |
6970 #ifndef PRODUCT | 6970 #ifndef PRODUCT |
6971 Profiler::DumpStackTrace(context); | 6971 Profiler::DumpStackTrace(context); |
6972 #endif | 6972 #endif |
6973 } | 6973 } |
6974 | 6974 |
6975 } // namespace dart | 6975 } // namespace dart |
OLD | NEW |