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

Issue 2552383002: Add an async version of dependency_walker.dart. (Closed)

Created:
4 years ago by Paul Berry
Modified:
4 years ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add an async version of dependency_walker.dart. This is intended to be used in situations where computing dependencies and/or evaluating nodes is an asynchronous operation. (For example, when performing a compilation, computing dependencies of a library requires file I/O to read the files constituting the library; evaluating a library cycle might potentially be performed asynchronously by a separate isolate). At the moment the implementation is nearly the same as that of dependency_walker.dart, except asynchronous. In future CLs I will look into allowing computeDependencies(), evaluate(), and evaluateScc() to operate in parallel. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/4ee949c154312e2a44f4351377cdcf021c2cf176

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -0 lines) Patch
A pkg/front_end/lib/src/async_dependency_walker.dart View 1 chunk +172 lines, -0 lines 2 comments Download
A pkg/front_end/test/src/async_dependency_walker_test.dart View 1 chunk +220 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
4 years ago (2016-12-06 19:18:06 UTC) #2
scheglov
LGTM https://codereview.chromium.org/2552383002/diff/1/pkg/front_end/lib/src/async_dependency_walker.dart File pkg/front_end/lib/src/async_dependency_walker.dart (right): https://codereview.chromium.org/2552383002/diff/1/pkg/front_end/lib/src/async_dependency_walker.dart#newcode18 pkg/front_end/lib/src/async_dependency_walker.dart:18: Future evaluate(NodeType v); Would Future<Null> be better here ...
4 years ago (2016-12-06 19:24:15 UTC) #3
Paul Berry
https://codereview.chromium.org/2552383002/diff/1/pkg/front_end/lib/src/async_dependency_walker.dart File pkg/front_end/lib/src/async_dependency_walker.dart (right): https://codereview.chromium.org/2552383002/diff/1/pkg/front_end/lib/src/async_dependency_walker.dart#newcode18 pkg/front_end/lib/src/async_dependency_walker.dart:18: Future evaluate(NodeType v); On 2016/12/06 19:24:14, scheglov wrote: > ...
4 years ago (2016-12-06 20:28:45 UTC) #4
Paul Berry
4 years ago (2016-12-06 20:29:12 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4ee949c154312e2a44f4351377cdcf021c2cf176 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698