| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 library = Library::IsolateLibrary(); | 103 library = Library::IsolateLibrary(); |
| 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::TypedDataLibrary(); | 108 library = Library::TypedDataLibrary(); |
| 109 ASSERT(!library.IsNull()); | 109 ASSERT(!library.IsNull()); |
| 110 library.set_native_entry_resolver(resolver); | 110 library.set_native_entry_resolver(resolver); |
| 111 library.set_native_entry_symbol_resolver(symbol_resolver); | 111 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 112 |
| 113 library = Library::ProfilerLibrary(); |
| 114 ASSERT(!library.IsNull()); |
| 115 library.set_native_entry_resolver(resolver); |
| 116 library.set_native_entry_symbol_resolver(symbol_resolver); |
| 112 } | 117 } |
| 113 | 118 |
| 114 | 119 |
| 115 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { | 120 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { |
| 116 return (resolver == | 121 return (resolver == |
| 117 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); | 122 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); |
| 118 } | 123 } |
| 119 | 124 |
| 120 } // namespace dart | 125 } // namespace dart |
| OLD | NEW |