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

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

Issue 2288763003: Remove Dart_VisitPrologueWeakHandles from the API header. (Closed)
Patch Set: . Created 4 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
« no previous file with comments | « no previous file | no next file » | 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698