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

Unified Diff: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart

Issue 2926883003: Compute API signatures of files. (Closed)
Patch Set: Created 3 years, 6 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: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
diff --git a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
index e56b5d1bc82b5d0ce850237d5d7738accb604350..85a7c534a0d5c47c14b7f7f403fbdb334b4a7821 100644
--- a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
+++ b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
@@ -59,9 +59,6 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
/// The logger to report compilation progress.
final PerformanceLog _logger;
- /// The current file system state.
- final FileSystemState _fsState;
-
/// The byte storage to get and put serialized data.
final ByteStore _byteStore;
@@ -71,6 +68,9 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
/// The salt to mix into all hashes used as keys for serialized data.
List<int> _salt;
+ /// The current file system state.
+ FileSystemState _fsState;
+
/// Latest compilation signatures produced by [computeDelta] for libraries.
final Map<Uri, String> _latestSignature = {};
@@ -81,9 +81,9 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
IncrementalKernelGeneratorImpl(
this._options, this._uriTranslator, this._entryPoint)
: _logger = _options.logger,
- _fsState = new FileSystemState(_options.fileSystem, _uriTranslator),
_byteStore = _options.byteStore {
_computeSalt();
+ _fsState = new FileSystemState(_options.fileSystem, _uriTranslator, _salt);
}
@override

Powered by Google App Engine
This is Rietveld 408576698