Index: runtime/include/dart_api.h |
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
index c9c0d1a926e4168cc5ed4f11adbb7496f80109e2..f25ea7d412a5e4a1ca20b3a1f9b51599ef899cfc 100755 |
--- a/runtime/include/dart_api.h |
+++ b/runtime/include/dart_api.h |
@@ -2798,7 +2798,7 @@ DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url, |
* Loads the root script for current isolate from a snapshot. |
* |
* \param buffer A buffer which contains a snapshot of the script. |
- * \param length Length of the passed in buffer. |
+ * \param buffer_len 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. |
@@ -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 buffer_len 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, |