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