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 230863005: Initial UserTag and dart:profiler library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/dart.cc » ('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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698