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