| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 library = Library::MathLibrary(); | 114 library = Library::MathLibrary(); |
| 115 ASSERT(!library.IsNull()); | 115 ASSERT(!library.IsNull()); |
| 116 library.set_native_entry_resolver(resolver); | 116 library.set_native_entry_resolver(resolver); |
| 117 library.set_native_entry_symbol_resolver(symbol_resolver); | 117 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 118 | 118 |
| 119 library = Library::MirrorsLibrary(); | 119 library = Library::MirrorsLibrary(); |
| 120 ASSERT(!library.IsNull()); | 120 ASSERT(!library.IsNull()); |
| 121 library.set_native_entry_resolver(resolver); | 121 library.set_native_entry_resolver(resolver); |
| 122 library.set_native_entry_symbol_resolver(symbol_resolver); | 122 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 123 | 123 |
| 124 library = Library::ProfilerLibrary(); | |
| 125 ASSERT(!library.IsNull()); | |
| 126 library.set_native_entry_resolver(resolver); | |
| 127 library.set_native_entry_symbol_resolver(symbol_resolver); | |
| 128 | |
| 129 library = Library::TypedDataLibrary(); | 124 library = Library::TypedDataLibrary(); |
| 130 ASSERT(!library.IsNull()); | 125 ASSERT(!library.IsNull()); |
| 131 library.set_native_entry_resolver(resolver); | 126 library.set_native_entry_resolver(resolver); |
| 132 library.set_native_entry_symbol_resolver(symbol_resolver); | 127 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 133 | 128 |
| 134 library = Library::VMServiceLibrary(); | 129 library = Library::VMServiceLibrary(); |
| 135 ASSERT(!library.IsNull()); | 130 ASSERT(!library.IsNull()); |
| 136 library.set_native_entry_resolver(resolver); | 131 library.set_native_entry_resolver(resolver); |
| 137 library.set_native_entry_symbol_resolver(symbol_resolver); | 132 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 138 } | 133 } |
| 139 | 134 |
| 140 | 135 |
| 141 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { | 136 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { |
| 142 return (resolver == | 137 return (resolver == |
| 143 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); | 138 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); |
| 144 } | 139 } |
| 145 | 140 |
| 146 } // namespace dart | 141 } // namespace dart |
| OLD | NEW |