| Index: runtime/include/dart_api.h
|
| diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
|
| index 4c1d2e3a8114325151c3897fb685c54de8df2823..9b4447797d1e31e2ebef9990b93a45095562220c 100644
|
| --- a/runtime/include/dart_api.h
|
| +++ b/runtime/include/dart_api.h
|
| @@ -2686,6 +2686,7 @@ typedef enum {
|
| Dart_kScriptTag,
|
| Dart_kSourceTag,
|
| Dart_kImportTag,
|
| + Dart_kKernelTag,
|
| } Dart_LibraryTag;
|
|
|
| /**
|
| @@ -2725,6 +2726,15 @@ typedef enum {
|
| * "import" directive. Once the script is loaded, the embedder should
|
| * call Dart_LoadLibrary to provide the script source to the VM. The
|
| * return value should be an error or null.
|
| + *
|
| + * Dart_kKernelTag
|
| + *
|
| + * This tag is used to load the intermediate file (kernel) generated by
|
| + * the Dart front end. This tag is typically used when a 'hot-reload'
|
| + * of an application is needed and the VM is 'use dart front end' mode.
|
| + * The dart front end typically compiles all the scripts, imports and part
|
| + * files into one intermediate file hence we don't use the source/import or
|
| + * script tags.
|
| */
|
| typedef Dart_Handle (*Dart_LibraryTagHandler)(
|
| Dart_LibraryTag tag,
|
|
|