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

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

Issue 1177153005: Enables clean VM shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove debug print Created 5 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2013, 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_NATIVE_API_H_ 7 #ifndef INCLUDE_DART_NATIVE_API_H_
8 #define INCLUDE_DART_NATIVE_API_H_ 8 #define INCLUDE_DART_NATIVE_API_H_
9 9
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * as the message generation will make temporary modifications to the 93 * as the message generation will make temporary modifications to the
94 * data. When the message has been sent the graph will be fully 94 * data. When the message has been sent the graph will be fully
95 * restored. 95 * restored.
96 * 96 *
97 * \param port_id The destination port. 97 * \param port_id The destination port.
98 * \param message The message to send. 98 * \param message The message to send.
99 * 99 *
100 * \return True if the message was posted. 100 * \return True if the message was posted.
101 */ 101 */
102 DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message); 102 DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message);
103 DART_EXPORT bool Dart_PostOOBCObject(Dart_Port port_id, Dart_CObject* message);
turnidge 2015/08/04 21:39:02 Remove.
zra 2015/08/05 06:23:06 Done.
103 104
104 /** 105 /**
105 * A native message handler. 106 * A native message handler.
106 * 107 *
107 * This handler is associated with a native port by calling 108 * This handler is associated with a native port by calling
108 * Dart_NewNativePort. 109 * Dart_NewNativePort.
109 * 110 *
110 * The message received is decoded into the message structure. The 111 * The message received is decoded into the message structure. The
111 * lifetime of the message data is controlled by the caller. All the 112 * lifetime of the message data is controlled by the caller. All the
112 * data references from the message are allocated by the caller and 113 * data references from the message are allocated by the caller and
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 /** 156 /**
156 * Forces all loaded classes and functions to be compiled eagerly in 157 * Forces all loaded classes and functions to be compiled eagerly in
157 * the current isolate.. 158 * the current isolate..
158 * 159 *
159 * TODO(turnidge): Document. 160 * TODO(turnidge): Document.
160 */ 161 */
161 DART_EXPORT Dart_Handle Dart_CompileAll(); 162 DART_EXPORT Dart_Handle Dart_CompileAll();
162 DART_EXPORT Dart_Handle Dart_Precompile(); 163 DART_EXPORT Dart_Handle Dart_Precompile();
163 164
164 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ 165 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698