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 RUNTIME_VM_BOOTSTRAP_NATIVES_H_ | 5 #ifndef RUNTIME_VM_BOOTSTRAP_NATIVES_H_ |
6 #define RUNTIME_VM_BOOTSTRAP_NATIVES_H_ | 6 #define RUNTIME_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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 static Dart_NativeFunction Lookup(Dart_Handle name, | 418 static Dart_NativeFunction Lookup(Dart_Handle name, |
419 int argument_count, | 419 int argument_count, |
420 bool* auto_setup_scope); | 420 bool* auto_setup_scope); |
421 | 421 |
422 static const uint8_t* Symbol(Dart_NativeFunction* nf); | 422 static const uint8_t* Symbol(Dart_NativeFunction* nf); |
423 | 423 |
424 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 424 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
425 static void DN_##name(Dart_NativeArguments args); | 425 static void DN_##name(Dart_NativeArguments args); |
426 | 426 |
427 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 427 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
428 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) | 428 #if !defined(DART_PRECOMPILED_RUNTIME) |
429 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 429 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
430 #endif | 430 #endif |
431 | 431 |
432 #undef DECLARE_BOOTSTRAP_NATIVE | 432 #undef DECLARE_BOOTSTRAP_NATIVE |
433 }; | 433 }; |
434 | 434 |
435 } // namespace dart | 435 } // namespace dart |
436 | 436 |
437 #endif // RUNTIME_VM_BOOTSTRAP_NATIVES_H_ | 437 #endif // RUNTIME_VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |