| 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 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 * is called. A NULL value removes the existing epilogue callback function | 579 * is called. A NULL value removes the existing epilogue callback function |
| 580 * if any. | 580 * if any. |
| 581 * | 581 * |
| 582 * \return Success if the callbacks were added. Otherwise, returns an | 582 * \return Success if the callbacks were added. Otherwise, returns an |
| 583 * error handle. | 583 * error handle. |
| 584 */ | 584 */ |
| 585 DART_EXPORT Dart_Handle Dart_SetGcCallbacks( | 585 DART_EXPORT Dart_Handle Dart_SetGcCallbacks( |
| 586 Dart_GcPrologueCallback prologue_callback, | 586 Dart_GcPrologueCallback prologue_callback, |
| 587 Dart_GcEpilogueCallback epilogue_callback); | 587 Dart_GcEpilogueCallback epilogue_callback); |
| 588 | 588 |
| 589 typedef void (*Dart_GcPrologueWeakHandleCallback)(void* isolate_callback_data, | |
| 590 Dart_WeakPersistentHandle obj, | |
| 591 intptr_t num_native_fields, | |
| 592 intptr_t* native_fields); | |
| 593 | |
| 594 DART_EXPORT Dart_Handle Dart_VisitPrologueWeakHandles( | |
| 595 Dart_GcPrologueWeakHandleCallback callback); | |
| 596 | 589 |
| 597 /* | 590 /* |
| 598 * ========================== | 591 * ========================== |
| 599 * Initialization and Globals | 592 * Initialization and Globals |
| 600 * ========================== | 593 * ========================== |
| 601 */ | 594 */ |
| 602 | 595 |
| 603 /** | 596 /** |
| 604 * Gets the version string for the Dart VM. | 597 * Gets the version string for the Dart VM. |
| 605 * | 598 * |
| (...skipping 2578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3184 /** | 3177 /** |
| 3185 * Returns whether the VM was initialized with a precompiled snapshot. Only | 3178 * Returns whether the VM was initialized with a precompiled snapshot. Only |
| 3186 * valid after Dart_Initialize. | 3179 * valid after Dart_Initialize. |
| 3187 * DEPRECATED. This is currently used to disable Platform.executable and | 3180 * DEPRECATED. This is currently used to disable Platform.executable and |
| 3188 * Platform.resolvedExecutable under precompilation to prevent process | 3181 * Platform.resolvedExecutable under precompilation to prevent process |
| 3189 * spawning tests from becoming fork-bombs. | 3182 * spawning tests from becoming fork-bombs. |
| 3190 */ | 3183 */ |
| 3191 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | 3184 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); |
| 3192 | 3185 |
| 3193 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3186 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |