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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index 5490dfaf1aa7f387bab39d8b8967e3632561c7be..be97d76bc6b58782a843eb13b2e2e96f55dd3637 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -2703,6 +2703,18 @@ DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library,
Dart_Handle source);
// TODO(turnidge): Rename to Dart_LibraryLoadSource?
+
+/**
+ * Loads a patch source string into a library.
+ *
+ * \param library A library
+ * \param url A url identifying the origin of the patch source
+ * \param source A string of Dart patch source
+ */
+DART_EXPORT Dart_Handle Dart_LoadPatch(Dart_Handle library,
+ Dart_Handle url,
+ Dart_Handle patch_source);
+
/**
* Sets the callback used to resolve native functions for a library.
*
« 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