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

Issue 1668483003: Create ElementAnnotation objects prior to resolution. (Closed)

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

Description

Create ElementAnnotation objects prior to resolution. This is a prerequisite to fixing #25285 (ConstantEvaluationTarget_Annotation consumes too much memory, shouldn't exist). By creating the ElementAnnotation objects early, we will be able to refer to them from the ConstantFinder; this will allow us to use the ElementAnnotation objects as constant evaluation targets. Note: there is a small semantic change. Previously, Element.metadata only contained ElementAnnotation objects for annotations that were successfully resolved. Now, it contains ElementAnnotation objects for all annotations. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/50248829053444be8299e19c342d0bb348506e3a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+549 lines, -162 lines) Patch
M pkg/analyzer/lib/src/dart/element/builder.dart View 28 chunks +117 lines, -4 lines 0 comments Download
M pkg/analyzer/lib/src/dart/element/element.dart View 2 chunks +9 lines, -5 lines 0 comments Download
M pkg/analyzer/lib/src/generated/element_resolver.dart View 14 chunks +43 lines, -74 lines 0 comments Download
M pkg/analyzer/lib/src/generated/incremental_resolver.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 3 chunks +5 lines, -9 lines 0 comments Download
M pkg/analyzer/test/generated/all_the_rest_test.dart View 65 chunks +287 lines, -66 lines 0 comments Download
M pkg/analyzer/test/generated/incremental_resolver_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/generated/non_error_resolver_test.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 1 chunk +9 lines, -2 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 2 chunks +69 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Paul Berry
Note: this differs from my previous attempt (https://codereview.chromium.org/1660713002) in the following ways: - Previously, ElementAnnotation ...
4 years, 10 months ago (2016-02-03 22:15:41 UTC) #2
Brian Wilkerson
LGTM
4 years, 10 months ago (2016-02-03 22:31:21 UTC) #3
Paul Berry
4 years, 10 months ago (2016-02-04 13:21:39 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
50248829053444be8299e19c342d0bb348506e3a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698