OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef RUNTIME_INCLUDE_DART_API_H_ | 7 #ifndef RUNTIME_INCLUDE_DART_API_H_ |
8 #define RUNTIME_INCLUDE_DART_API_H_ | 8 #define RUNTIME_INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 2428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2439 enum { | 2439 enum { |
2440 kNativeArgNumberPos = 0, | 2440 kNativeArgNumberPos = 0, |
2441 kNativeArgNumberSize = 8, | 2441 kNativeArgNumberSize = 8, |
2442 kNativeArgTypePos = kNativeArgNumberPos + kNativeArgNumberSize, | 2442 kNativeArgTypePos = kNativeArgNumberPos + kNativeArgNumberSize, |
2443 kNativeArgTypeSize = 8, | 2443 kNativeArgTypeSize = 8, |
2444 }; | 2444 }; |
2445 | 2445 |
2446 #define BITMASK(size) ((1 << size) - 1) | 2446 #define BITMASK(size) ((1 << size) - 1) |
2447 #define DART_NATIVE_ARG_DESCRIPTOR(type, position) \ | 2447 #define DART_NATIVE_ARG_DESCRIPTOR(type, position) \ |
2448 (((type & BITMASK(kNativeArgTypeSize)) << kNativeArgTypePos) | \ | 2448 (((type & BITMASK(kNativeArgTypeSize)) << kNativeArgTypePos) | \ |
2449 (position & BITMASK(kNativeArgNumberSize))) // NOLINT | 2449 (position & BITMASK(kNativeArgNumberSize))) |
2450 | 2450 |
2451 /** | 2451 /** |
2452 * Gets the native arguments based on the types passed in and populates | 2452 * Gets the native arguments based on the types passed in and populates |
2453 * the passed arguments buffer with appropriate native values. | 2453 * the passed arguments buffer with appropriate native values. |
2454 * | 2454 * |
2455 * \param args the Native arguments block passed into the native call. | 2455 * \param args the Native arguments block passed into the native call. |
2456 * \param num_arguments length of argument descriptor array and argument | 2456 * \param num_arguments length of argument descriptor array and argument |
2457 * values array passed in. | 2457 * values array passed in. |
2458 * \param arg_descriptors an array that describes the arguments that | 2458 * \param arg_descriptors an array that describes the arguments that |
2459 * need to be retrieved. For each argument to be retrieved the descriptor | 2459 * need to be retrieved. For each argument to be retrieved the descriptor |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3200 | 3200 |
3201 | 3201 |
3202 /** | 3202 /** |
3203 * Returns whether the VM only supports running from precompiled snapshots and | 3203 * Returns whether the VM only supports running from precompiled snapshots and |
3204 * not from any other kind of snapshot or from source (that is, the VM was | 3204 * not from any other kind of snapshot or from source (that is, the VM was |
3205 * compiled with DART_PRECOMPILED_RUNTIME). | 3205 * compiled with DART_PRECOMPILED_RUNTIME). |
3206 */ | 3206 */ |
3207 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3207 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
3208 | 3208 |
3209 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3209 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |