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

Issue 2455573003: Put fully resolved analysis results (just errors now) into the byte cache. (Closed)

Created:
4 years, 1 month ago by scheglov
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Put fully resolved analysis results (just errors now) into the byte cache. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/bd594d453f429ac5347ea0275aa18b4fdae3825b

Patch Set 1 #

Total comments: 9

Patch Set 2 : tweaks #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -3 lines) Patch
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 1 5 chunks +86 lines, -3 lines 3 comments Download
M pkg/analyzer/lib/src/summary/format.dart View 1 chunk +290 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/summary/format.fbs View Binary file 0 comments Download
M pkg/analyzer/lib/src/summary/idl.dart View 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
scheglov
4 years, 1 month ago (2016-10-26 17:55:34 UTC) #1
Brian Wilkerson
lgtm https://codereview.chromium.org/2455573003/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2455573003/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode370 pkg/analyzer/lib/src/dart/analysis/driver.dart:370: AnalysisResult _computeAnalysisResult(_File file, bool withUnit) { Document 'withUnit'. ...
4 years, 1 month ago (2016-10-26 18:32:11 UTC) #2
scheglov
https://codereview.chromium.org/2455573003/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2455573003/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode370 pkg/analyzer/lib/src/dart/analysis/driver.dart:370: AnalysisResult _computeAnalysisResult(_File file, bool withUnit) { On 2016/10/26 18:32:11, ...
4 years, 1 month ago (2016-10-26 18:48:41 UTC) #3
scheglov
Committed patchset #2 (id:20001) manually as bd594d453f429ac5347ea0275aa18b4fdae3825b (presubmit successful).
4 years, 1 month ago (2016-10-26 18:48:56 UTC) #5
Paul Berry
https://codereview.chromium.org/2455573003/diff/20001/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2455573003/diff/20001/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode387 pkg/analyzer/lib/src/dart/analysis/driver.dart:387: if (!withUnit) { AFAICT this block will never execute, ...
4 years, 1 month ago (2016-10-31 17:02:53 UTC) #6
scheglov
https://codereview.chromium.org/2455573003/diff/20001/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2455573003/diff/20001/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode387 pkg/analyzer/lib/src/dart/analysis/driver.dart:387: if (!withUnit) { On 2016/10/31 17:02:53, Paul Berry wrote: ...
4 years, 1 month ago (2016-10-31 17:07:07 UTC) #7
Paul Berry
4 years, 1 month ago (2016-10-31 21:35:34 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2455573003/diff/20001/pkg/analyzer/lib/src/da...
File pkg/analyzer/lib/src/dart/analysis/driver.dart (right):

https://codereview.chromium.org/2455573003/diff/20001/pkg/analyzer/lib/src/da...
pkg/analyzer/lib/src/dart/analysis/driver.dart:387: if (!withUnit) {
On 2016/10/31 17:07:06, scheglov wrote:
> On 2016/10/31 17:02:53, Paul Berry wrote:
> > AFAICT this block will never execute, since the same effect is already
> achieved
> > by lines 375-380.
> 
> Both this block and the block in lines 375-380 uses the current dependency
hash.
> But if the dependency hash is not in _dependencySignatureMap, then
> _getCachedAnalysisResult(file) will return null. Call to
> _createLibraryContext(file) recomputes the dependency hash and puts it into
> _dependencySignatureMap. So, this block might still be able to find a previous
> result for the newly computed dependency hash.

Ok, I understand now.  Thanks.

Powered by Google App Engine
This is Rietveld 408576698