| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "vm/bootstrap.h" | 5 #include "vm/bootstrap.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "vm/bootstrap_natives.h" | 9 #include "vm/bootstrap_natives.h" |
| 10 #include "vm/dart_api_impl.h" | 10 #include "vm/dart_api_impl.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 library = Library::ConvertLibrary(); | 88 library = Library::ConvertLibrary(); |
| 89 ASSERT(!library.IsNull()); | 89 ASSERT(!library.IsNull()); |
| 90 library.set_native_entry_resolver(resolver); | 90 library.set_native_entry_resolver(resolver); |
| 91 library.set_native_entry_symbol_resolver(symbol_resolver); | 91 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 92 | 92 |
| 93 library = Library::CoreLibrary(); | 93 library = Library::CoreLibrary(); |
| 94 ASSERT(!library.IsNull()); | 94 ASSERT(!library.IsNull()); |
| 95 library.set_native_entry_resolver(resolver); | 95 library.set_native_entry_resolver(resolver); |
| 96 library.set_native_entry_symbol_resolver(symbol_resolver); | 96 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 97 | 97 |
| 98 library = Library::DebuggerLibrary(); | 98 library = Library::DeveloperLibrary(); |
| 99 ASSERT(!library.IsNull()); | 99 ASSERT(!library.IsNull()); |
| 100 library.set_native_entry_resolver(resolver); | 100 library.set_native_entry_resolver(resolver); |
| 101 library.set_native_entry_symbol_resolver(symbol_resolver); | 101 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 102 | 102 |
| 103 library = Library::InternalLibrary(); | 103 library = Library::InternalLibrary(); |
| 104 ASSERT(!library.IsNull()); | 104 ASSERT(!library.IsNull()); |
| 105 library.set_native_entry_resolver(resolver); | 105 library.set_native_entry_resolver(resolver); |
| 106 library.set_native_entry_symbol_resolver(symbol_resolver); | 106 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 107 | 107 |
| 108 library = Library::IsolateLibrary(); | 108 library = Library::IsolateLibrary(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 131 library.set_native_entry_symbol_resolver(symbol_resolver); | 131 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 132 } | 132 } |
| 133 | 133 |
| 134 | 134 |
| 135 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { | 135 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { |
| 136 return (resolver == | 136 return (resolver == |
| 137 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); | 137 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace dart | 140 } // namespace dart |
| OLD | NEW |