Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 */ |
| OLD | NEW |