Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: runtime/vm/bootstrap_natives.cc

Issue 1390803002: Move dart:_vmservice native entries into bootstrap natives (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/service_isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 library.set_native_entry_resolver(resolver); 126 library.set_native_entry_resolver(resolver);
127 library.set_native_entry_symbol_resolver(symbol_resolver); 127 library.set_native_entry_symbol_resolver(symbol_resolver);
128 128
129 library = Library::TypedDataLibrary(); 129 library = Library::TypedDataLibrary();
130 ASSERT(!library.IsNull()); 130 ASSERT(!library.IsNull());
131 library.set_native_entry_resolver(resolver); 131 library.set_native_entry_resolver(resolver);
132 library.set_native_entry_symbol_resolver(symbol_resolver); 132 library.set_native_entry_symbol_resolver(symbol_resolver);
133 133
134 library = Library::VMServiceLibrary(); 134 library = Library::VMServiceLibrary();
135 ASSERT(!library.IsNull()); 135 ASSERT(!library.IsNull());
136 library.set_native_entry_resolver( 136 library.set_native_entry_resolver(resolver);
137 reinterpret_cast<Dart_NativeEntryResolver>( 137 library.set_native_entry_symbol_resolver(symbol_resolver);
138 &ServiceIsolate::NativeResolver));
139 } 138 }
140 139
141 140
142 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) { 141 bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) {
143 return (resolver == 142 return (resolver ==
144 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup)); 143 reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup));
145 } 144 }
146 145
147 } // namespace dart 146 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/service_isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698