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