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