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

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

Issue 62273003: Use the runtime for generic subsitution of variable types, return types, parameter types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/lib/mirrors_impl.dart ('k') | tests/lib/lib.status » ('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 #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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 V(ClassMirror_invokeGetter, 3) \ 286 V(ClassMirror_invokeGetter, 3) \
287 V(ClassMirror_invokeSetter, 4) \ 287 V(ClassMirror_invokeSetter, 4) \
288 V(ClassMirror_invokeConstructor, 5) \ 288 V(ClassMirror_invokeConstructor, 5) \
289 V(ClassMirror_type_variables, 1) \ 289 V(ClassMirror_type_variables, 1) \
290 V(ClassMirror_type_arguments, 1) \ 290 V(ClassMirror_type_arguments, 1) \
291 V(LibraryMirror_invoke, 5) \ 291 V(LibraryMirror_invoke, 5) \
292 V(LibraryMirror_invokeGetter, 3) \ 292 V(LibraryMirror_invokeGetter, 3) \
293 V(LibraryMirror_invokeSetter, 4) \ 293 V(LibraryMirror_invokeSetter, 4) \
294 V(TypeVariableMirror_owner, 1) \ 294 V(TypeVariableMirror_owner, 1) \
295 V(TypeVariableMirror_upper_bound, 1) \ 295 V(TypeVariableMirror_upper_bound, 1) \
296 V(TypeVariableMirror_instantiate_from, 2) \
297 V(DeclarationMirror_metadata, 1) \ 296 V(DeclarationMirror_metadata, 1) \
298 V(FunctionTypeMirror_call_method, 2) \ 297 V(FunctionTypeMirror_call_method, 2) \
299 V(FunctionTypeMirror_parameters, 2) \ 298 V(FunctionTypeMirror_parameters, 2) \
300 V(FunctionTypeMirror_return_type, 1) \ 299 V(FunctionTypeMirror_return_type, 2) \
301 V(MethodMirror_owner, 1) \ 300 V(MethodMirror_owner, 1) \
302 V(MethodMirror_parameters, 2) \ 301 V(MethodMirror_parameters, 2) \
303 V(MethodMirror_return_type, 1) \ 302 V(MethodMirror_return_type, 2) \
304 V(MethodMirror_source, 1) \ 303 V(MethodMirror_source, 1) \
305 V(ParameterMirror_type, 2) \ 304 V(ParameterMirror_type, 3) \
306 V(TypedefMirror_referent, 1) \ 305 V(TypedefMirror_referent, 1) \
307 V(TypedefMirror_instantiate_from, 2) \
308 V(TypedefMirror_declaration, 1) \ 306 V(TypedefMirror_declaration, 1) \
309 V(VariableMirror_type, 1) \ 307 V(VariableMirror_type, 2) \
310 V(GrowableList_allocate, 2) \ 308 V(GrowableList_allocate, 2) \
311 V(GrowableList_getIndexed, 2) \ 309 V(GrowableList_getIndexed, 2) \
312 V(GrowableList_setIndexed, 3) \ 310 V(GrowableList_setIndexed, 3) \
313 V(GrowableList_getLength, 1) \ 311 V(GrowableList_getLength, 1) \
314 V(GrowableList_getCapacity, 1) \ 312 V(GrowableList_getCapacity, 1) \
315 V(GrowableList_setLength, 2) \ 313 V(GrowableList_setLength, 2) \
316 V(GrowableList_setData, 2) \ 314 V(GrowableList_setData, 2) \
317 V(WeakProperty_new, 2) \ 315 V(WeakProperty_new, 2) \
318 V(WeakProperty_getKey, 1) \ 316 V(WeakProperty_getKey, 1) \
319 V(WeakProperty_getValue, 1) \ 317 V(WeakProperty_getValue, 1) \
320 V(WeakProperty_setValue, 2) \ 318 V(WeakProperty_setValue, 2) \
321 V(Uri_isWindowsPlatform, 0) \ 319 V(Uri_isWindowsPlatform, 0) \
322 320
323 class BootstrapNatives : public AllStatic { 321 class BootstrapNatives : public AllStatic {
324 public: 322 public:
325 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); 323 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count);
326 324
327 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 325 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
328 static void DN_##name(Dart_NativeArguments args); 326 static void DN_##name(Dart_NativeArguments args);
329 327
330 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 328 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
331 329
332 #undef DECLARE_BOOTSTRAP_NATIVE 330 #undef DECLARE_BOOTSTRAP_NATIVE
333 }; 331 };
334 332
335 } // namespace dart 333 } // namespace dart
336 334
337 #endif // VM_BOOTSTRAP_NATIVES_H_ 335 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698