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

Issue 181383015: Refactoring resolvers to make them able to be run in parallel. (Closed)

Created:
6 years, 9 months ago by blois
Modified:
6 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Refactoring resolvers to make them able to be run in parallel. With pub build and pub serve the same transformer can be run on the same asset in parallel. We want to maintain the cache between the runs, so making the resolver pipeline these requests. In addition, refactoring to dramatically change the role of ResolverTransformer- previously it was a transformer that automatically kept the AST up to date, but this does not work well when in a pipeline of transformers that are generating or modifying code. What was ResolverTransformer is Resolvers- a cache of resolvers for which individual transformers now need to request the resolver from. ResolverTransformer is now a mixin which can be used to automatically release a Resolver when it's done being used. BUG= R=sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=33163

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -116 lines) Patch
M pkg/code_transformers/lib/resolver.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/code_transformers/lib/src/resolver.dart View 1 chunk +10 lines, -0 lines 0 comments Download
M pkg/code_transformers/lib/src/resolver_impl.dart View 1 3 chunks +38 lines, -8 lines 0 comments Download
D pkg/code_transformers/lib/src/resolver_transformer.dart View 1 chunk +0 lines, -55 lines 0 comments Download
A pkg/code_transformers/lib/src/resolvers.dart View 1 1 chunk +60 lines, -0 lines 1 comment Download
M pkg/code_transformers/pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M pkg/code_transformers/test/resolver_test.dart View 1 19 chunks +97 lines, -51 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
blois
6 years, 9 months ago (2014-02-27 18:01:54 UTC) #1
Siggi Cherem (dart-lang)
https://codereview.chromium.org/181383015/diff/20001/pkg/code_transformers/lib/src/resolver_impl.dart File pkg/code_transformers/lib/src/resolver_impl.dart (right): https://codereview.chromium.org/181383015/diff/20001/pkg/code_transformers/lib/src/resolver_impl.dart#newcode92 pkg/code_transformers/lib/src/resolver_impl.dart:92: }); style nit: use (_) => this, maybe fold ...
6 years, 9 months ago (2014-02-27 18:20:35 UTC) #2
blois
https://codereview.chromium.org/181383015/diff/20001/pkg/code_transformers/lib/src/resolver_impl.dart File pkg/code_transformers/lib/src/resolver_impl.dart (right): https://codereview.chromium.org/181383015/diff/20001/pkg/code_transformers/lib/src/resolver_impl.dart#newcode92 pkg/code_transformers/lib/src/resolver_impl.dart:92: }); On 2014/02/27 18:20:41, Siggi Cherem (dart-lang) wrote: > ...
6 years, 9 months ago (2014-02-27 23:47:16 UTC) #3
Siggi Cherem (dart-lang)
lgtm, thanks! https://codereview.chromium.org/181383015/diff/40001/pkg/code_transformers/lib/src/resolvers.dart File pkg/code_transformers/lib/src/resolvers.dart (right): https://codereview.chromium.org/181383015/diff/40001/pkg/code_transformers/lib/src/resolvers.dart#newcode13 pkg/code_transformers/lib/src/resolvers.dart:13: /// Barback-based code resolver which maintains up-to-date ...
6 years, 9 months ago (2014-02-28 01:45:12 UTC) #4
blois
6 years, 9 months ago (2014-02-28 16:58:23 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r33163 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698