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

Unified Diff: runtime/include/dart_api.h

Issue 2998983002: 1. Figure out the modified libraries from the specifeid kernel file during (Closed)
Patch Set: Address code review comments. Created 3 years, 4 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
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,

Powered by Google App Engine
This is Rietveld 408576698