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

Issue 1660713002: 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/3977c9f2274df35df6332a65af9973fd6517bc12

Patch Set 1 #

Patch Set 2 : Fix accidental comment change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -93 lines) Patch
M pkg/analyzer/lib/src/dart/element/builder.dart View 22 chunks +112 lines, -3 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 +44 lines, -69 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 1 3 chunks +5 lines, -9 lines 0 comments Download
M pkg/analyzer/test/generated/all_the_rest_test.dart View 2 chunks +136 lines, -5 lines 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 1 chunk +5 lines, -2 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 2 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Paul Berry
4 years, 10 months ago (2016-02-02 22:19:33 UTC) #2
Brian Wilkerson
LGTM
4 years, 10 months ago (2016-02-02 22:37:47 UTC) #3
Paul Berry
4 years, 10 months ago (2016-02-02 22:43:08 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
3977c9f2274df35df6332a65af9973fd6517bc12 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698