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

Unified Diff: pkg/front_end/lib/incremental_kernel_generator.dart

Issue 2871573003: Update DeltaProgram API and documentation. (Closed)
Patch Set: Created 3 years, 7 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 | pkg/front_end/lib/src/incremental_kernel_generator_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/incremental_kernel_generator.dart
diff --git a/pkg/front_end/lib/incremental_kernel_generator.dart b/pkg/front_end/lib/incremental_kernel_generator.dart
index 637f640b1c730da93b1a6d401c955e9488b70e50..f1094f1e46d937e456c20fa20fde8b22d42edd3c 100644
--- a/pkg/front_end/lib/incremental_kernel_generator.dart
+++ b/pkg/front_end/lib/incremental_kernel_generator.dart
@@ -16,11 +16,20 @@ import 'compiler_options.dart';
class DeltaProgram {
/// The new state of the program.
///
- /// Libraries whose kernel representation is known to be unchanged since the
- /// last [DeltaProgram] are not included.
- final Map<Uri, Program> newState;
+ /// It includes full kernels for changed libraries and for libraries that
+ /// are affected by the transitive change of API in the changed libraries.
+ ///
+ /// For VM reload purposes we need to provide also full kernels for the
+ /// libraries that are transitively imported by the library with `main()`
+ /// and transitively import a changed library.
+ /// TODO(scheglov) With `main()` or entry point URI?
Siggi Cherem (dart-lang) 2017/05/08 22:49:36 for the purpose of the implementation here - anyth
+ ///
+ /// Also includes outlines for the transitive closure of libraries that are
Siggi Cherem (dart-lang) 2017/05/08 22:49:36 Using the terminology from earlier today, I'd reph
+ /// referenced by previously specified changed, affected or VM-required
+ /// libraries.
+ final Program newProgram;
- DeltaProgram(this.newState);
+ DeltaProgram(this.newProgram);
Siggi Cherem (dart-lang) 2017/05/08 22:49:36 Let's add a TODO saying that [Program] will become
/// TODO(paulberry): add information about libraries that were removed.
}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/incremental_kernel_generator_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698