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

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

Issue 2640573003: Resolution for issue #5092: Unit test handle checks consider dangling handles to be valid. (Closed)
Patch Set: Created 3 years, 11 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.h » ('j') | runtime/vm/dart_api_impl.h » ('J')
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 typedef Dart_Handle Dart_PersistentHandle; 252 typedef Dart_Handle Dart_PersistentHandle;
253 typedef struct _Dart_WeakPersistentHandle* Dart_WeakPersistentHandle; 253 typedef struct _Dart_WeakPersistentHandle* Dart_WeakPersistentHandle;
254 254
255 typedef void (*Dart_WeakPersistentHandleFinalizer)( 255 typedef void (*Dart_WeakPersistentHandleFinalizer)(
256 void* isolate_callback_data, 256 void* isolate_callback_data,
257 Dart_WeakPersistentHandle handle, 257 Dart_WeakPersistentHandle handle,
258 void* peer); 258 void* peer);
259 typedef void (*Dart_PeerFinalizer)(void* peer); 259 typedef void (*Dart_PeerFinalizer)(void* peer);
260 260
261 /** 261 /**
262 * Is this handle valid, or has it been freed?
263 *
264 * Requires there to be a current isolate.
265 */
266 DART_EXPORT bool Dart_IsValid(Dart_Handle handle);
siva 2017/01/18 23:27:06 Why do we need this new API call, the issue you ar
bkonyi 2017/01/19 01:05:13 I was following the pattern of Dart_IsError so jus
267
268 /**
262 * Is this an error handle? 269 * Is this an error handle?
263 * 270 *
264 * Requires there to be a current isolate. 271 * Requires there to be a current isolate.
265 */ 272 */
266 DART_EXPORT bool Dart_IsError(Dart_Handle handle); 273 DART_EXPORT bool Dart_IsError(Dart_Handle handle);
267 274
268 /** 275 /**
269 * Is this an api error handle? 276 * Is this an api error handle?
270 * 277 *
271 * Api error handles are produced when an api function is misused. 278 * Api error handles are produced when an api function is misused.
(...skipping 3021 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 */ 3300 */
3294 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3301 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3295 3302
3296 3303
3297 /** 3304 /**
3298 * Print a native stack trace. Used for crash handling. 3305 * Print a native stack trace. Used for crash handling.
3299 */ 3306 */
3300 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3307 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3301 3308
3302 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3309 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.h » ('j') | runtime/vm/dart_api_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698