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

Issue 1131953004: Create a task in the new task model to compute constant dependencies. (Closed)

Created:
5 years, 7 months ago by Paul Berry
Modified:
5 years, 7 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Create a task in the new task model to compute constant dependencies. This is the first of several planned tasks for constant evaluation. R=brianwilkerson@google.com, scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=45624

Patch Set 1 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -86 lines) Patch
M pkg/analyzer/lib/src/generated/constant.dart View 9 chunks +86 lines, -85 lines 0 comments Download
M pkg/analyzer/lib/src/plugin/engine_plugin.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 2 chunks +74 lines, -0 lines 10 comments Download
M pkg/analyzer/lib/task/dart.dart View 1 chunk +10 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/all_the_rest_test.dart View 1 chunk +3 lines, -1 line 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 2 chunks +24 lines, -0 lines 2 comments Download

Messages

Total messages: 9 (1 generated)
Paul Berry
5 years, 7 months ago (2015-05-07 22:26:11 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart File pkg/analyzer/lib/src/task/dart.dart (right): https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart#newcode1650 pkg/analyzer/lib/src/task/dart.dart:1650: static const String UNIT_INPUT = 'UNIT_INPUT'; Perhaps "RESOLVED_UNIT_INPUT" ...
5 years, 7 months ago (2015-05-07 22:46:59 UTC) #3
scheglov
LGTM https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart File pkg/analyzer/lib/src/task/dart.dart (right): https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart#newcode1676 pkg/analyzer/lib/src/task/dart.dart:1676: // to ensure that resolution has occurred before ...
5 years, 7 months ago (2015-05-07 22:52:09 UTC) #4
Paul Berry
https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart File pkg/analyzer/lib/src/task/dart.dart (right): https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart#newcode1650 pkg/analyzer/lib/src/task/dart.dart:1650: static const String UNIT_INPUT = 'UNIT_INPUT'; On 2015/05/07 22:46:59, ...
5 years, 7 months ago (2015-05-08 00:24:35 UTC) #5
Paul Berry
Committed patchset #1 (id:1) manually as 45624 (presubmit successful).
5 years, 7 months ago (2015-05-08 00:36:58 UTC) #6
scheglov
https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart File pkg/analyzer/lib/src/task/dart.dart (right): https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart#newcode1681 pkg/analyzer/lib/src/task/dart.dart:1681: TypeProvider typeProvider = context.typeProvider; On 2015/05/08 00:24:35, Paul Berry ...
5 years, 7 months ago (2015-05-08 03:53:00 UTC) #7
Brian Wilkerson
https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart File pkg/analyzer/lib/src/task/dart.dart (right): https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/dart.dart#newcode1681 pkg/analyzer/lib/src/task/dart.dart:1681: TypeProvider typeProvider = context.typeProvider; > I don't think we ...
5 years, 7 months ago (2015-05-08 14:11:29 UTC) #8
scheglov
5 years, 7 months ago (2015-05-08 15:14:36 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/d...
File pkg/analyzer/lib/src/task/dart.dart (right):

https://codereview.chromium.org/1131953004/diff/1/pkg/analyzer/lib/src/task/d...
pkg/analyzer/lib/src/task/dart.dart:1681: TypeProvider typeProvider =
context.typeProvider;
On 2015/05/08 14:11:29, Brian Wilkerson wrote:
> > I don't think we want to request all information we want to access as
_direct_
> > inputs.
> 
> But not doing so could (although I admit the probability is small) cause
> problems later when we change the task structure to improve performance.
> Basically, we're hard-coding the assumption that a previous task had depended
on
> the type provider, and that seems dangerous (though again, the risk is
> admittedly low).
> 
> Is there a reason to *not* make the dependency explicit?

No, there isn't.
Just consistency.

Powered by Google App Engine
This is Rietveld 408576698