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

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

Issue 11264032: Introduce VM API for the patching mechanism. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Duplicate the code instead to keep error messages. Created 8 years, 1 month 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') | runtime/vm/dart_api_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 2685 matching lines...) Expand 10 before | Expand all | Expand 10 after
2696 * \param url A url identifying the origin of the source 2696 * \param url A url identifying the origin of the source
2697 * \param source A string of Dart source 2697 * \param source A string of Dart source
2698 * 2698 *
2699 * \return A valid handle if no error occurs during the operation. 2699 * \return A valid handle if no error occurs during the operation.
2700 */ 2700 */
2701 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, 2701 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library,
2702 Dart_Handle url, 2702 Dart_Handle url,
2703 Dart_Handle source); 2703 Dart_Handle source);
2704 // TODO(turnidge): Rename to Dart_LibraryLoadSource? 2704 // TODO(turnidge): Rename to Dart_LibraryLoadSource?
2705 2705
2706
2707 /**
2708 * Loads a patch source string into a library.
2709 *
2710 * \param library A library
2711 * \param url A url identifying the origin of the patch source
2712 * \param source A string of Dart patch source
2713 */
2714 DART_EXPORT Dart_Handle Dart_LoadPatch(Dart_Handle library,
2715 Dart_Handle url,
2716 Dart_Handle patch_source);
2717
2706 /** 2718 /**
2707 * Sets the callback used to resolve native functions for a library. 2719 * Sets the callback used to resolve native functions for a library.
2708 * 2720 *
2709 * \param library A library. 2721 * \param library A library.
2710 * \param resolver A native entry resolver. 2722 * \param resolver A native entry resolver.
2711 * 2723 *
2712 * \return A valid handle if the native resolver was set successfully. 2724 * \return A valid handle if the native resolver was set successfully.
2713 */ 2725 */
2714 DART_EXPORT Dart_Handle Dart_SetNativeResolver( 2726 DART_EXPORT Dart_Handle Dart_SetNativeResolver(
2715 Dart_Handle library, 2727 Dart_Handle library,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2756 * 2768 *
2757 * \param object An object. 2769 * \param object An object.
2758 * \param peer A value to store in the peer field. 2770 * \param peer A value to store in the peer field.
2759 * 2771 *
2760 * \return Returns an error if 'object' is a subtype of Null, num, or 2772 * \return Returns an error if 'object' is a subtype of Null, num, or
2761 * bool. 2773 * bool.
2762 */ 2774 */
2763 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2775 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2764 2776
2765 #endif // INCLUDE_DART_API_H_ 2777 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698