| 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 "vm/bigint_operations.h" | 10 #include "vm/bigint_operations.h" | 
| (...skipping 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4506   const Namespace& import_ns = Namespace::Handle( | 4506   const Namespace& import_ns = Namespace::Handle( | 
| 4507       Namespace::New(import_vm, Object::null_array(), Object::null_array())); | 4507       Namespace::New(import_vm, Object::null_array(), Object::null_array())); | 
| 4508   if (prefix_vm.Length() == 0) { | 4508   if (prefix_vm.Length() == 0) { | 
| 4509     library_vm.AddImport(import_ns); | 4509     library_vm.AddImport(import_ns); | 
| 4510   } else { | 4510   } else { | 
| 4511     LibraryPrefix& library_prefix = LibraryPrefix::Handle(); | 4511     LibraryPrefix& library_prefix = LibraryPrefix::Handle(); | 
| 4512     library_prefix = library_vm.LookupLocalLibraryPrefix(prefix_symbol); | 4512     library_prefix = library_vm.LookupLocalLibraryPrefix(prefix_symbol); | 
| 4513     if (!library_prefix.IsNull()) { | 4513     if (!library_prefix.IsNull()) { | 
| 4514       library_prefix.AddImport(import_ns); | 4514       library_prefix.AddImport(import_ns); | 
| 4515     } else { | 4515     } else { | 
| 4516       library_prefix = LibraryPrefix::New(prefix_symbol, import_ns); | 4516       library_prefix = LibraryPrefix::New(prefix_symbol, import_ns, false); | 
| 4517       library_vm.AddObject(library_prefix, prefix_symbol); | 4517       library_vm.AddObject(library_prefix, prefix_symbol); | 
| 4518     } | 4518     } | 
| 4519   } | 4519   } | 
| 4520   return Api::Success(); | 4520   return Api::Success(); | 
| 4521 } | 4521 } | 
| 4522 | 4522 | 
| 4523 | 4523 | 
| 4524 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, | 4524 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, | 
| 4525                                         Dart_Handle url, | 4525                                         Dart_Handle url, | 
| 4526                                         Dart_Handle source) { | 4526                                         Dart_Handle source) { | 
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4661 | 4661 | 
| 4662 | 4662 | 
| 4663 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 4663 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 
| 4664     const char* name, | 4664     const char* name, | 
| 4665     Dart_ServiceRequestCallback callback, | 4665     Dart_ServiceRequestCallback callback, | 
| 4666     void* user_data) { | 4666     void* user_data) { | 
| 4667   Service::RegisterRootEmbedderCallback(name, callback, user_data); | 4667   Service::RegisterRootEmbedderCallback(name, callback, user_data); | 
| 4668 } | 4668 } | 
| 4669 | 4669 | 
| 4670 }  // namespace dart | 4670 }  // namespace dart | 
| OLD | NEW | 
|---|