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 |
123 library = Library::TypedDataLibrary(); | 128 library = Library::TypedDataLibrary(); |
124 ASSERT(!library.IsNull()); | 129 ASSERT(!library.IsNull()); |
125 library.set_native_entry_resolver(resolver); | 130 library.set_native_entry_resolver(resolver); |
126 library.set_native_entry_symbol_resolver(symbol_resolver); | 131 library.set_native_entry_symbol_resolver(symbol_resolver); |
127 } | 132 } |
128 | 133 |
129 | 134 |
130 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { | 135 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { |
131 return (resolver == | 136 return (resolver == |
132 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); | 137 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); |
133 } | 138 } |
134 | 139 |
135 } // namespace dart | 140 } // namespace dart |
OLD | NEW |