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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 // 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 INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 * 191 *
192 * May generate an unhandled exception error. 192 * May generate an unhandled exception error.
193 * 193 *
194 * \return A handle to the converted string if no error occurs during 194 * \return A handle to the converted string if no error occurs during
195 * the conversion. If an error does occur, an error handle is 195 * the conversion. If an error does occur, an error handle is
196 * returned. 196 * returned.
197 */ 197 */
198 DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object); 198 DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object);
199 199
200 /** 200 /**
201 * Checks if the two objects are the same object 201 * Checks to see if two handles refer to identically equal objects.
202 * 202 *
203 * The result of the comparison is returned through the 'same' 203 * This is equivalent to using the triple-equals (===) operator.
204 * parameter. The return value itself is used to indicate success or
205 * failure, not identity.
206 * 204 *
207 * \param obj1 An object to be compared. 205 * \param obj1 An object to be compared.
208 * \param obj2 An object to be compared. 206 * \param obj2 An object to be compared.
209 * \param equal Returns whether the two objects are the same.
210 * 207 *
211 * \return A valid handle if no error occurs during the comparison. 208 * \return True if the objects are identically equal. False otherwise.
212 */ 209 */
213 DART_EXPORT Dart_Handle Dart_IsSame(Dart_Handle obj1, 210 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2);
214 Dart_Handle obj2,
215 bool* same);
216 211
217 /** 212 /**
218 * Allocates a persistent handle for an object. 213 * Allocates a persistent handle for an object.
219 * 214 *
220 * This handle has the lifetime of the current isolate unless it is 215 * This handle has the lifetime of the current isolate unless it is
221 * explicitly deallocated by calling Dart_DeletePersistentHandle. 216 * explicitly deallocated by calling Dart_DeletePersistentHandle.
222 * 217 *
223 * Requires there to be a current isolate. 218 * Requires there to be a current isolate.
224 */ 219 */
225 DART_EXPORT Dart_Handle Dart_NewPersistentHandle(Dart_Handle object); 220 DART_EXPORT Dart_Handle Dart_NewPersistentHandle(Dart_Handle object);
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 1987
1993 // --- Profiling support ---- 1988 // --- Profiling support ----
1994 1989
1995 // External pprof support for gathering and dumping symbolic 1990 // External pprof support for gathering and dumping symbolic
1996 // information that can be used for better profile reports for 1991 // information that can be used for better profile reports for
1997 // dynamically generated code. 1992 // dynamically generated code.
1998 DART_EXPORT void Dart_InitPprofSupport(); 1993 DART_EXPORT void Dart_InitPprofSupport();
1999 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 1994 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2000 1995
2001 #endif // INCLUDE_DART_API_H_ 1996 #endif // INCLUDE_DART_API_H_
OLDNEW
« 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