| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 V(GrowableObjectArray_getIndexed, 2) \ | 271 V(GrowableObjectArray_getIndexed, 2) \ |
| 272 V(GrowableObjectArray_setIndexed, 3) \ | 272 V(GrowableObjectArray_setIndexed, 3) \ |
| 273 V(GrowableObjectArray_getLength, 1) \ | 273 V(GrowableObjectArray_getLength, 1) \ |
| 274 V(GrowableObjectArray_getCapacity, 1) \ | 274 V(GrowableObjectArray_getCapacity, 1) \ |
| 275 V(GrowableObjectArray_setLength, 2) \ | 275 V(GrowableObjectArray_setLength, 2) \ |
| 276 V(GrowableObjectArray_setData, 2) \ | 276 V(GrowableObjectArray_setData, 2) \ |
| 277 V(WeakProperty_new, 2) \ | 277 V(WeakProperty_new, 2) \ |
| 278 V(WeakProperty_getKey, 1) \ | 278 V(WeakProperty_getKey, 1) \ |
| 279 V(WeakProperty_getValue, 1) \ | 279 V(WeakProperty_getValue, 1) \ |
| 280 V(WeakProperty_setValue, 2) \ | 280 V(WeakProperty_setValue, 2) \ |
| 281 V(Uri_isWindowsPlatform, 0) \ |
| 281 | 282 |
| 282 class BootstrapNatives : public AllStatic { | 283 class BootstrapNatives : public AllStatic { |
| 283 public: | 284 public: |
| 284 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); | 285 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); |
| 285 | 286 |
| 286 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 287 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
| 287 static void DN_##name(Dart_NativeArguments args); | 288 static void DN_##name(Dart_NativeArguments args); |
| 288 | 289 |
| 289 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 290 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
| 290 | 291 |
| 291 #undef DECLARE_BOOTSTRAP_NATIVE | 292 #undef DECLARE_BOOTSTRAP_NATIVE |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace dart | 295 } // namespace dart |
| 295 | 296 |
| 296 #endif // VM_BOOTSTRAP_NATIVES_H_ | 297 #endif // VM_BOOTSTRAP_NATIVES_H_ |
| OLD | NEW |