Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 216383004: Merge initial implementation of deferred handling in the VM: (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4474 matching lines...) Expand 10 before | Expand all | Expand 10 after
4485 const Namespace& import_ns = Namespace::Handle( 4485 const Namespace& import_ns = Namespace::Handle(
4486 Namespace::New(import_vm, Object::null_array(), Object::null_array())); 4486 Namespace::New(import_vm, Object::null_array(), Object::null_array()));
4487 if (prefix_vm.Length() == 0) { 4487 if (prefix_vm.Length() == 0) {
4488 library_vm.AddImport(import_ns); 4488 library_vm.AddImport(import_ns);
4489 } else { 4489 } else {
4490 LibraryPrefix& library_prefix = LibraryPrefix::Handle(); 4490 LibraryPrefix& library_prefix = LibraryPrefix::Handle();
4491 library_prefix = library_vm.LookupLocalLibraryPrefix(prefix_symbol); 4491 library_prefix = library_vm.LookupLocalLibraryPrefix(prefix_symbol);
4492 if (!library_prefix.IsNull()) { 4492 if (!library_prefix.IsNull()) {
4493 library_prefix.AddImport(import_ns); 4493 library_prefix.AddImport(import_ns);
4494 } else { 4494 } else {
4495 library_prefix = LibraryPrefix::New(prefix_symbol, import_ns); 4495 library_prefix = LibraryPrefix::New(prefix_symbol, import_ns, false);
4496 library_vm.AddObject(library_prefix, prefix_symbol); 4496 library_vm.AddObject(library_prefix, prefix_symbol);
4497 } 4497 }
4498 } 4498 }
4499 return Api::Success(); 4499 return Api::Success();
4500 } 4500 }
4501 4501
4502 4502
4503 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, 4503 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library,
4504 Dart_Handle url, 4504 Dart_Handle url,
4505 Dart_Handle source) { 4505 Dart_Handle source) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
4640 4640
4641 4641
4642 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 4642 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
4643 const char* name, 4643 const char* name,
4644 Dart_ServiceRequestCallback callback, 4644 Dart_ServiceRequestCallback callback,
4645 void* user_data) { 4645 void* user_data) {
4646 Service::RegisterRootEmbedderCallback(name, callback, user_data); 4646 Service::RegisterRootEmbedderCallback(name, callback, user_data);
4647 } 4647 }
4648 4648
4649 } // namespace dart 4649 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698