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

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

Issue 1056223002: Fix crash when posting a message to a send port with port id 0. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | 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 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 * 1167 *
1168 * \param port The destination port. 1168 * \param port The destination port.
1169 * \param object An object from the current isolate. 1169 * \param object An object from the current isolate.
1170 * 1170 *
1171 * \return True if the message was posted. 1171 * \return True if the message was posted.
1172 */ 1172 */
1173 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); 1173 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object);
1174 1174
1175 /** 1175 /**
1176 * Returns a new SendPort with the provided port id. 1176 * Returns a new SendPort with the provided port id.
1177 *
1178 * \param port_id The destination port.
1179 *
1180 * \return A new SendPort if no errors occurs. Otherwise returns
1181 * an error handle.
1177 */ 1182 */
1178 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); 1183 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id);
1179 1184
1180 /** 1185 /**
1181 * Gets the SendPort id for the provided SendPort. 1186 * Gets the SendPort id for the provided SendPort.
1182 * \param port A SendPort object whose id is desired. 1187 * \param port A SendPort object whose id is desired.
1183 * \param port_id Returns the id of the SendPort. 1188 * \param port_id Returns the id of the SendPort.
1184 * \return Success if no error occurs. Otherwise returns 1189 * \return Success if no error occurs. Otherwise returns
1185 * an error handle. 1190 * an error handle.
1186 */ 1191 */
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
2829 * NOTE: If multiple callbacks with the same name are registered, only the 2834 * NOTE: If multiple callbacks with the same name are registered, only the
2830 * last callback registered will be remembered. 2835 * last callback registered will be remembered.
2831 */ 2836 */
2832 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2837 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2833 const char* name, 2838 const char* name,
2834 Dart_ServiceRequestCallback callback, 2839 Dart_ServiceRequestCallback callback,
2835 void* user_data); 2840 void* user_data);
2836 2841
2837 2842
2838 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2843 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698