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

Issue 1576663002: Use FlatBuffers for summaries. (Closed)

Created:
4 years, 11 months ago by scheglov
Modified:
4 years, 11 months ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove IsSet flags and restore toMap() generation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2567 lines, -1746 lines) Patch
M pkg/analyzer/lib/src/summary/format.dart View 1 134 chunks +2311 lines, -1619 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_test.dart View 1 3 chunks +12 lines, -8 lines 0 comments Download
M pkg/analyzer/tool/summary/generate.dart View 1 2 chunks +244 lines, -119 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
scheglov
4 years, 11 months ago (2016-01-09 03:55:49 UTC) #1
Paul Berry
lgtm assuming generation of toMap() is fixed. Nicely done! https://codereview.chromium.org/1576663002/diff/1/pkg/analyzer/lib/src/summary/format.dart File pkg/analyzer/lib/src/summary/format.dart (right): https://codereview.chromium.org/1576663002/diff/1/pkg/analyzer/lib/src/summary/format.dart#newcode49 pkg/analyzer/lib/src/summary/format.dart:49: ...
4 years, 11 months ago (2016-01-09 14:57:41 UTC) #2
scheglov
Committed patchset #2 (id:20001) manually as 68bf8244f80d18eaa7d21ff87dbe800072203acc (presubmit successful).
4 years, 11 months ago (2016-01-09 18:55:08 UTC) #4
scheglov
4 years, 11 months ago (2016-01-09 18:55:33 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1576663002/diff/1/pkg/analyzer/lib/src/summar...
File pkg/analyzer/lib/src/summary/format.dart (right):

https://codereview.chromium.org/1576663002/diff/1/pkg/analyzer/lib/src/summar...
pkg/analyzer/lib/src/summary/format.dart:49: bool _uriIsSet = false;
On 2016/01/09 14:57:41, Paul Berry wrote:
> Personally I would remove booleans like these (and the corresponding
> assertions).  The only reason the old builder prohibited calling a setter more
> than once was because I was thinking that when we transitioned to flatbuffers,
> calling the setter would cause data to be written to the flatbuffer
immediately.
>  Now that we've decided to write to the flatbuffer from the finish() method,
> there's no reason to prohibit calling the setter more than once; it just costs
> memory and CPU cycles.

Done.

https://codereview.chromium.org/1576663002/diff/1/pkg/analyzer/lib/src/summar...
pkg/analyzer/lib/src/summary/format.dart:105: Map<String, Object> toMap() => {};
On 2016/01/09 14:57:41, Paul Berry wrote:
> Looks like generation of this method got broken by this CL.  This will mess up
> some some unit tests (they will appear to pass even if they are actually
> failing).

Done.

Powered by Google App Engine
This is Rietveld 408576698