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

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

Issue 1116263004: Add 'dart:debugger' library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 library = Library::ConvertLibrary(); 88 library = Library::ConvertLibrary();
89 ASSERT(!library.IsNull()); 89 ASSERT(!library.IsNull());
90 library.set_native_entry_resolver(resolver); 90 library.set_native_entry_resolver(resolver);
91 library.set_native_entry_symbol_resolver(symbol_resolver); 91 library.set_native_entry_symbol_resolver(symbol_resolver);
92 92
93 library = Library::CoreLibrary(); 93 library = Library::CoreLibrary();
94 ASSERT(!library.IsNull()); 94 ASSERT(!library.IsNull());
95 library.set_native_entry_resolver(resolver); 95 library.set_native_entry_resolver(resolver);
96 library.set_native_entry_symbol_resolver(symbol_resolver); 96 library.set_native_entry_symbol_resolver(symbol_resolver);
97 97
98 library = Library::MathLibrary(); 98 library = Library::DebuggerLibrary();
99 ASSERT(!library.IsNull());
100 library.set_native_entry_resolver(resolver);
101 library.set_native_entry_symbol_resolver(symbol_resolver);
102
103 library = Library::MirrorsLibrary();
104 ASSERT(!library.IsNull()); 99 ASSERT(!library.IsNull());
105 library.set_native_entry_resolver(resolver); 100 library.set_native_entry_resolver(resolver);
106 library.set_native_entry_symbol_resolver(symbol_resolver); 101 library.set_native_entry_symbol_resolver(symbol_resolver);
107 102
108 library = Library::InternalLibrary(); 103 library = Library::InternalLibrary();
109 ASSERT(!library.IsNull()); 104 ASSERT(!library.IsNull());
110 library.set_native_entry_resolver(resolver); 105 library.set_native_entry_resolver(resolver);
111 library.set_native_entry_symbol_resolver(symbol_resolver); 106 library.set_native_entry_symbol_resolver(symbol_resolver);
112 107
113 library = Library::IsolateLibrary(); 108 library = Library::IsolateLibrary();
114 ASSERT(!library.IsNull()); 109 ASSERT(!library.IsNull());
115 library.set_native_entry_resolver(resolver); 110 library.set_native_entry_resolver(resolver);
116 library.set_native_entry_symbol_resolver(symbol_resolver); 111 library.set_native_entry_symbol_resolver(symbol_resolver);
117 112
118 library = Library::TypedDataLibrary(); 113 library = Library::MathLibrary();
119 ASSERT(!library.IsNull()); 114 ASSERT(!library.IsNull());
120 library.set_native_entry_resolver(resolver); 115 library.set_native_entry_resolver(resolver);
121 library.set_native_entry_symbol_resolver(symbol_resolver); 116 library.set_native_entry_symbol_resolver(symbol_resolver);
117
118 library = Library::MirrorsLibrary();
119 ASSERT(!library.IsNull());
120 library.set_native_entry_resolver(resolver);
121 library.set_native_entry_symbol_resolver(symbol_resolver);
122 122
123 library = Library::ProfilerLibrary(); 123 library = Library::ProfilerLibrary();
124 ASSERT(!library.IsNull()); 124 ASSERT(!library.IsNull());
125 library.set_native_entry_resolver(resolver); 125 library.set_native_entry_resolver(resolver);
126 library.set_native_entry_symbol_resolver(symbol_resolver); 126 library.set_native_entry_symbol_resolver(symbol_resolver);
127
128 library = Library::TypedDataLibrary();
129 ASSERT(!library.IsNull());
130 library.set_native_entry_resolver(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698