Index: runtime/include/dart_api.h |
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
index c9c0d1a926e4168cc5ed4f11adbb7496f80109e2..ea4125feeb50533781f299d7280af9e17d472a6d 100755 |
--- a/runtime/include/dart_api.h |
+++ b/runtime/include/dart_api.h |
@@ -2807,6 +2807,18 @@ DART_EXPORT Dart_Handle Dart_LoadScriptFromSnapshot(const uint8_t* buffer, |
intptr_t buffer_len); |
/** |
+ * Loads a dart application which was compiled to a Kernel binary. |
+ * |
+ * \param buffer A buffer which contains a Kernel binary. |
+ * \param length Length of the passed in buffer. |
+ * |
+ * \return If no error occurs, the Library object corresponding to the root |
+ * script is returned. Otherwise an error handle is returned. |
+ */ |
+DART_EXPORT Dart_Handle Dart_LoadKernel(const uint8_t* buffer, |
+ intptr_t buffer_len); |
+ |
+/** |
* Gets the library for the root script for the current isolate. |
* |
* If the root script has not yet been set for the current isolate, |