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 5795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5806 if (ns.IsNull()) continue; | 5806 if (ns.IsNull()) continue; |
5807 importee = ns.library(); | 5807 importee = ns.library(); |
5808 importee_uri = importee.url(); | 5808 importee_uri = importee.url(); |
5809 if (importee_uri.StartsWith(scheme_vm)) { | 5809 if (importee_uri.StartsWith(scheme_vm)) { |
5810 result.Add(importer); | 5810 result.Add(importer); |
5811 result.Add(importee); | 5811 result.Add(importee); |
5812 } | 5812 } |
5813 } | 5813 } |
5814 } | 5814 } |
5815 | 5815 |
5816 return Api::NewHandle(T, Array::MakeFixedLength(result)); | 5816 return Api::NewHandle(T, Array::MakeArray(result)); |
5817 } | 5817 } |
5818 | 5818 |
5819 | 5819 |
5820 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, | 5820 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, |
5821 Dart_Handle url, | 5821 Dart_Handle url, |
5822 Dart_Handle resolved_url, | 5822 Dart_Handle resolved_url, |
5823 Dart_Handle source, | 5823 Dart_Handle source, |
5824 intptr_t line_offset, | 5824 intptr_t line_offset, |
5825 intptr_t column_offset) { | 5825 intptr_t column_offset) { |
5826 API_TIMELINE_DURATION; | 5826 API_TIMELINE_DURATION; |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6991 } | 6991 } |
6992 | 6992 |
6993 | 6993 |
6994 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { | 6994 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { |
6995 #ifndef PRODUCT | 6995 #ifndef PRODUCT |
6996 Profiler::DumpStackTrace(context); | 6996 Profiler::DumpStackTrace(context); |
6997 #endif | 6997 #endif |
6998 } | 6998 } |
6999 | 6999 |
7000 } // namespace dart | 7000 } // namespace dart |
OLD | NEW |