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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 * argument handles refer to the same object. | 428 * argument handles refer to the same object. |
429 * | 429 * |
430 * \param obj1 An object to be compared. | 430 * \param obj1 An object to be compared. |
431 * \param obj2 An object to be compared. | 431 * \param obj2 An object to be compared. |
432 * | 432 * |
433 * \return True if the objects are identically equal. False otherwise. | 433 * \return True if the objects are identically equal. False otherwise. |
434 */ | 434 */ |
435 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); | 435 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); |
436 | 436 |
437 /** | 437 /** |
438 * Returns a hash code for the argument. The hash code of objects that are equal | |
439 * according to Dart_IdentityEquals will return the same hash code, but the hash | |
440 * codes of non-equal objects are not necessarily distinct. | |
441 * | |
442 * \param obj An object for which to derive a hash code. | |
443 * | |
444 * \return A hash code for the parameter. | |
445 */ | |
446 DART_EXPORT uint64_t Dart_IdentityHash(Dart_Handle obj); | |
447 | |
448 /** | |
449 * Allocates a handle in the current scope from a persistent handle. | 438 * Allocates a handle in the current scope from a persistent handle. |
450 */ | 439 */ |
451 DART_EXPORT Dart_Handle Dart_HandleFromPersistent(Dart_PersistentHandle object); | 440 DART_EXPORT Dart_Handle Dart_HandleFromPersistent(Dart_PersistentHandle object); |
452 | 441 |
453 /** | 442 /** |
454 * Allocates a handle in the current scope from a weak persistent handle. | 443 * Allocates a handle in the current scope from a weak persistent handle. |
455 */ | 444 */ |
456 DART_EXPORT Dart_Handle | 445 DART_EXPORT Dart_Handle |
457 Dart_HandleFromWeakPersistent(Dart_WeakPersistentHandle object); | 446 Dart_HandleFromWeakPersistent(Dart_WeakPersistentHandle object); |
458 | 447 |
(...skipping 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3339 * compiled with DART_PRECOMPILED_RUNTIME). | 3328 * compiled with DART_PRECOMPILED_RUNTIME). |
3340 */ | 3329 */ |
3341 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3330 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
3342 | 3331 |
3343 /** | 3332 /** |
3344 * Print a native stack trace. Used for crash handling. | 3333 * Print a native stack trace. Used for crash handling. |
3345 */ | 3334 */ |
3346 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); | 3335 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); |
3347 | 3336 |
3348 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3337 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |