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

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

Issue 21124011: Inline CreateTypedefMirror and get rid of LazyXXXMirror (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 #ifndef VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef VM_BOOTSTRAP_NATIVES_H_
6 #define VM_BOOTSTRAP_NATIVES_H_ 6 #define VM_BOOTSTRAP_NATIVES_H_
7 7
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 9
10 // bootstrap dart natives used in the core dart library. 10 // bootstrap dart natives used in the core dart library.
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 V(ClassMirror_invokeGetter, 3) \ 258 V(ClassMirror_invokeGetter, 3) \
259 V(ClassMirror_invokeSetter, 4) \ 259 V(ClassMirror_invokeSetter, 4) \
260 V(ClassMirror_invokeConstructor, 3) \ 260 V(ClassMirror_invokeConstructor, 3) \
261 V(ClassMirror_type_variables, 1) \ 261 V(ClassMirror_type_variables, 1) \
262 V(LibraryMirror_invoke, 4) \ 262 V(LibraryMirror_invoke, 4) \
263 V(LibraryMirror_invokeGetter, 3) \ 263 V(LibraryMirror_invokeGetter, 3) \
264 V(LibraryMirror_invokeSetter, 4) \ 264 V(LibraryMirror_invokeSetter, 4) \
265 V(LocalTypeVariableMirror_owner, 1) \ 265 V(LocalTypeVariableMirror_owner, 1) \
266 V(LocalTypeVariableMirror_upper_bound, 1) \ 266 V(LocalTypeVariableMirror_upper_bound, 1) \
267 V(DeclarationMirror_metadata, 1) \ 267 V(DeclarationMirror_metadata, 1) \
268 V(FunctionTypeMirror_parameters, 1) \
269 V(FunctionTypeMirror_return_type, 1) \
268 V(MethodMirror_owner, 1) \ 270 V(MethodMirror_owner, 1) \
269 V(MethodMirror_parameters, 1) \ 271 V(MethodMirror_parameters, 1) \
270 V(MethodMirror_return_type, 1) \ 272 V(MethodMirror_return_type, 1) \
271 V(ParameterMirror_type, 2) \ 273 V(ParameterMirror_type, 2) \
274 V(TypedefMirror_referent, 1) \
272 V(VariableMirror_type, 1) \ 275 V(VariableMirror_type, 1) \
273 V(GrowableObjectArray_allocate, 2) \ 276 V(GrowableObjectArray_allocate, 2) \
274 V(GrowableObjectArray_getIndexed, 2) \ 277 V(GrowableObjectArray_getIndexed, 2) \
275 V(GrowableObjectArray_setIndexed, 3) \ 278 V(GrowableObjectArray_setIndexed, 3) \
276 V(GrowableObjectArray_getLength, 1) \ 279 V(GrowableObjectArray_getLength, 1) \
277 V(GrowableObjectArray_getCapacity, 1) \ 280 V(GrowableObjectArray_getCapacity, 1) \
278 V(GrowableObjectArray_setLength, 2) \ 281 V(GrowableObjectArray_setLength, 2) \
279 V(GrowableObjectArray_setData, 2) \ 282 V(GrowableObjectArray_setData, 2) \
280 V(WeakProperty_new, 2) \ 283 V(WeakProperty_new, 2) \
281 V(WeakProperty_getKey, 1) \ 284 V(WeakProperty_getKey, 1) \
282 V(WeakProperty_getValue, 1) \ 285 V(WeakProperty_getValue, 1) \
283 V(WeakProperty_setValue, 2) \ 286 V(WeakProperty_setValue, 2) \
284 287
285 class BootstrapNatives : public AllStatic { 288 class BootstrapNatives : public AllStatic {
286 public: 289 public:
287 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); 290 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count);
288 291
289 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 292 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
290 static void DN_##name(Dart_NativeArguments args); 293 static void DN_##name(Dart_NativeArguments args);
291 294
292 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 295 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
293 296
294 #undef DECLARE_BOOTSTRAP_NATIVE 297 #undef DECLARE_BOOTSTRAP_NATIVE
295 }; 298 };
296 299
297 } // namespace dart 300 } // namespace dart
298 301
299 #endif // VM_BOOTSTRAP_NATIVES_H_ 302 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698