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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 V(GrowableList_getLength, 1) \ | 339 V(GrowableList_getLength, 1) \ |
340 V(GrowableList_getCapacity, 1) \ | 340 V(GrowableList_getCapacity, 1) \ |
341 V(GrowableList_setLength, 2) \ | 341 V(GrowableList_setLength, 2) \ |
342 V(GrowableList_setData, 2) \ | 342 V(GrowableList_setData, 2) \ |
343 V(Internal_makeListFixedLength, 1) \ | 343 V(Internal_makeListFixedLength, 1) \ |
344 V(WeakProperty_new, 2) \ | 344 V(WeakProperty_new, 2) \ |
345 V(WeakProperty_getKey, 1) \ | 345 V(WeakProperty_getKey, 1) \ |
346 V(WeakProperty_getValue, 1) \ | 346 V(WeakProperty_getValue, 1) \ |
347 V(WeakProperty_setValue, 2) \ | 347 V(WeakProperty_setValue, 2) \ |
348 V(Uri_isWindowsPlatform, 0) \ | 348 V(Uri_isWindowsPlatform, 0) \ |
| 349 V(LibraryPrefix_load, 1) \ |
| 350 |
349 | 351 |
350 class BootstrapNatives : public AllStatic { | 352 class BootstrapNatives : public AllStatic { |
351 public: | 353 public: |
352 static Dart_NativeFunction Lookup(Dart_Handle name, | 354 static Dart_NativeFunction Lookup(Dart_Handle name, |
353 int argument_count, | 355 int argument_count, |
354 bool* auto_setup_scope); | 356 bool* auto_setup_scope); |
355 | 357 |
356 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 358 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
357 static void DN_##name(Dart_NativeArguments args); | 359 static void DN_##name(Dart_NativeArguments args); |
358 | 360 |
359 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 361 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
360 | 362 |
361 #undef DECLARE_BOOTSTRAP_NATIVE | 363 #undef DECLARE_BOOTSTRAP_NATIVE |
362 }; | 364 }; |
363 | 365 |
364 } // namespace dart | 366 } // namespace dart |
365 | 367 |
366 #endif // VM_BOOTSTRAP_NATIVES_H_ | 368 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |