Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1621)

Side by Side Diff: runtime/include/dart_api.h

Issue 2980043002: Cleanup unused Dart API Dart_IdentityHash (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698