OLD | NEW |
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) \ | 296 V(TypeVariableMirror_instantiate_from, 2) \ |
297 V(DeclarationMirror_metadata, 1) \ | 297 V(DeclarationMirror_metadata, 1) \ |
298 V(FunctionTypeMirror_call_method, 2) \ | 298 V(FunctionTypeMirror_call_method, 2) \ |
299 V(FunctionTypeMirror_parameters, 2) \ | 299 V(FunctionTypeMirror_parameters, 2) \ |
300 V(FunctionTypeMirror_return_type, 1) \ | 300 V(FunctionTypeMirror_return_type, 1) \ |
301 V(MethodMirror_owner, 1) \ | 301 V(MethodMirror_owner, 1) \ |
302 V(MethodMirror_parameters, 2) \ | 302 V(MethodMirror_parameters, 2) \ |
303 V(MethodMirror_return_type, 1) \ | 303 V(MethodMirror_return_type, 2) \ |
304 V(MethodMirror_source, 1) \ | 304 V(MethodMirror_source, 1) \ |
305 V(ParameterMirror_type, 2) \ | 305 V(ParameterMirror_type, 3) \ |
306 V(TypedefMirror_referent, 1) \ | 306 V(TypedefMirror_referent, 1) \ |
307 V(TypedefMirror_instantiate_from, 2) \ | 307 V(TypedefMirror_instantiate_from, 2) \ |
308 V(TypedefMirror_declaration, 1) \ | 308 V(TypedefMirror_declaration, 1) \ |
309 V(VariableMirror_type, 1) \ | 309 V(VariableMirror_type, 2) \ |
310 V(GrowableList_allocate, 2) \ | 310 V(GrowableList_allocate, 2) \ |
311 V(GrowableList_getIndexed, 2) \ | 311 V(GrowableList_getIndexed, 2) \ |
312 V(GrowableList_setIndexed, 3) \ | 312 V(GrowableList_setIndexed, 3) \ |
313 V(GrowableList_getLength, 1) \ | 313 V(GrowableList_getLength, 1) \ |
314 V(GrowableList_getCapacity, 1) \ | 314 V(GrowableList_getCapacity, 1) \ |
315 V(GrowableList_setLength, 2) \ | 315 V(GrowableList_setLength, 2) \ |
316 V(GrowableList_setData, 2) \ | 316 V(GrowableList_setData, 2) \ |
317 V(WeakProperty_new, 2) \ | 317 V(WeakProperty_new, 2) \ |
318 V(WeakProperty_getKey, 1) \ | 318 V(WeakProperty_getKey, 1) \ |
319 V(WeakProperty_getValue, 1) \ | 319 V(WeakProperty_getValue, 1) \ |
320 V(WeakProperty_setValue, 2) \ | 320 V(WeakProperty_setValue, 2) \ |
321 V(Uri_isWindowsPlatform, 0) \ | 321 V(Uri_isWindowsPlatform, 0) \ |
322 | 322 |
323 class BootstrapNatives : public AllStatic { | 323 class BootstrapNatives : public AllStatic { |
324 public: | 324 public: |
325 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); | 325 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); |
326 | 326 |
327 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 327 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
328 static void DN_##name(Dart_NativeArguments args); | 328 static void DN_##name(Dart_NativeArguments args); |
329 | 329 |
330 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 330 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
331 | 331 |
332 #undef DECLARE_BOOTSTRAP_NATIVE | 332 #undef DECLARE_BOOTSTRAP_NATIVE |
333 }; | 333 }; |
334 | 334 |
335 } // namespace dart | 335 } // namespace dart |
336 | 336 |
337 #endif // VM_BOOTSTRAP_NATIVES_H_ | 337 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |