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

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

Issue 16780008: Reified metadata in the VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 * name/arity to a Dart_NativeFunction. If no function is found, the 2267 * name/arity to a Dart_NativeFunction. If no function is found, the
2268 * callback should return NULL. 2268 * callback should return NULL.
2269 * 2269 *
2270 * See Dart_SetNativeResolver. 2270 * See Dart_SetNativeResolver.
2271 */ 2271 */
2272 typedef Dart_NativeFunction (*Dart_NativeEntryResolver)(Dart_Handle name, 2272 typedef Dart_NativeFunction (*Dart_NativeEntryResolver)(Dart_Handle name,
2273 int num_of_arguments); 2273 int num_of_arguments);
2274 /* TODO(turnidge): Consider renaming to NativeFunctionResolver or 2274 /* TODO(turnidge): Consider renaming to NativeFunctionResolver or
2275 * NativeResolver. */ 2275 * NativeResolver. */
2276 2276
2277
2278 /* --- Metadata support --- */
2279
2280 /**
2281 * Get metadata associated with an object.
2282 *
2283 * \param obj Object for which the metadata is retrieved.
2284 *
2285 * \return If no error occurs, returns an array of metadata values.
2286 * Returns an empty array if there is no metadata for the object.
2287 * Returns an error if the evaluation of the metadata expressions fails.
2288 *
2289 */
2290 DART_EXPORT Dart_Handle Dart_GetMetadata(Dart_Handle obj);
2291
2292
2277 /* --- Scripts and Libraries --- 2293 /* --- Scripts and Libraries ---
2278 * TODO(turnidge): Finish documenting this section. */ 2294 * TODO(turnidge): Finish documenting this section. */
2279 2295
2280 typedef enum { 2296 typedef enum {
2281 Dart_kLibraryTag = 0, 2297 Dart_kLibraryTag = 0,
2282 Dart_kImportTag, 2298 Dart_kImportTag,
2283 Dart_kSourceTag, 2299 Dart_kSourceTag,
2284 Dart_kCanonicalizeUrl 2300 Dart_kCanonicalizeUrl
2285 } Dart_LibraryTag; 2301 } Dart_LibraryTag;
2286 2302
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
2631 * 2647 *
2632 * The port must have been allocated by a call to Dart_NewNativePort. 2648 * The port must have been allocated by a call to Dart_NewNativePort.
2633 * 2649 *
2634 * \param native_port_id The id of the native port to close. 2650 * \param native_port_id The id of the native port to close.
2635 * 2651 *
2636 * \return Returns true if the port was closed successfully. 2652 * \return Returns true if the port was closed successfully.
2637 */ 2653 */
2638 DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); 2654 DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id);
2639 2655
2640 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2656 #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