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

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

Issue 24254004: Make Dart_IdentityEqual live up to its sepc and not leak boxing implementation detail. (Reland r275… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove debug prints Created 7 years, 3 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 | runtime/lib/identical.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 INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 * 358 *
359 * \return The converted string if no error occurs during 359 * \return The converted string if no error occurs during
360 * the conversion. If an error does occur, an error handle is 360 * the conversion. If an error does occur, an error handle is
361 * returned. 361 * returned.
362 */ 362 */
363 DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object); 363 DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object);
364 364
365 /** 365 /**
366 * Checks to see if two handles refer to identically equal objects. 366 * Checks to see if two handles refer to identically equal objects.
367 * 367 *
368 * This is equivalent to using the triple-equals (===) operator. 368 * If both handles refer to instances, this is equivalent to using the top-level
369 * function identical() from dart:core. Otherwise, returns whether the two
370 * argument handles refer to the same object.
369 * 371 *
370 * \param obj1 An object to be compared. 372 * \param obj1 An object to be compared.
371 * \param obj2 An object to be compared. 373 * \param obj2 An object to be compared.
372 * 374 *
373 * \return True if the objects are identically equal. False otherwise. 375 * \return True if the objects are identically equal. False otherwise.
374 */ 376 */
375 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); 377 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2);
376 378
377 /** 379 /**
378 * Allocates a handle in the current scope from a persistent handle. 380 * Allocates a handle in the current scope from a persistent handle.
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after
2270 * 2272 *
2271 * \param object An object. 2273 * \param object An object.
2272 * \param peer A value to store in the peer field. 2274 * \param peer A value to store in the peer field.
2273 * 2275 *
2274 * \return Returns an error if 'object' is a subtype of Null, num, or 2276 * \return Returns an error if 'object' is a subtype of Null, num, or
2275 * bool. 2277 * bool.
2276 */ 2278 */
2277 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2279 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2278 2280
2279 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2281 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/identical.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698