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

Unified Diff: include/dart_api.h

Issue 10196003: Dart_IsSame -> Dart_IdentityEquals. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/dart_api.h
===================================================================
--- include/dart_api.h (revision 6862)
+++ include/dart_api.h (working copy)
@@ -198,21 +198,16 @@
DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object);
/**
- * Checks if the two objects are the same object
+ * Checks to see if two handles refer to identically equal objects.
*
- * The result of the comparison is returned through the 'same'
- * parameter. The return value itself is used to indicate success or
- * failure, not identity.
+ * This is equivalent to using the triple-equals (===) operator.
*
* \param obj1 An object to be compared.
* \param obj2 An object to be compared.
- * \param equal Returns whether the two objects are the same.
*
- * \return A valid handle if no error occurs during the comparison.
+ * \return True if the objects are identically equal. False otherwise.
*/
-DART_EXPORT Dart_Handle Dart_IsSame(Dart_Handle obj1,
- Dart_Handle obj2,
- bool* same);
+DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2);
/**
* Allocates a persistent handle for an object.
« no previous file with comments | « no previous file | vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698