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

Issue 10870010: Evaluate compile-time constants of metadata. (Closed)

Created:
8 years, 4 months ago by ahe
Modified:
8 years, 4 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Evaluate compile-time constants of metadata. Committed: https://code.google.com/p/dart/source/detail?r=11212

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address review commens #

Total comments: 2

Patch Set 3 : Address review comments #

Patch Set 4 : Rebased and use const instead of final #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -34 lines) Patch
M dart/lib/compiler/implementation/closure.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M dart/lib/compiler/implementation/compile_time_constants.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M dart/lib/compiler/implementation/elements/elements.dart View 1 2 3 4 chunks +20 lines, -5 lines 0 comments Download
M dart/lib/compiler/implementation/patch_parser.dart View 1 2 3 1 chunk +3 lines, -0 lines 4 comments Download
M dart/lib/compiler/implementation/resolver.dart View 1 2 3 6 chunks +29 lines, -13 lines 0 comments Download
M dart/lib/compiler/implementation/scanner/class_element_parser.dart View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M dart/lib/compiler/implementation/scanner/listener.dart View 1 1 chunk +7 lines, -1 line 0 comments Download
M dart/lib/compiler/implementation/ssa/builder.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M dart/lib/compiler/implementation/world.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/compiler/dart2js/metadata_test.dart View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ahe
8 years, 4 months ago (2012-08-22 13:29:15 UTC) #1
Johnni Winther
https://chromiumcodereview.appspot.com/10870010/diff/1/dart/lib/compiler/implementation/elements/elements.dart File dart/lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10870010/diff/1/dart/lib/compiler/implementation/elements/elements.dart#newcode1602 dart/lib/compiler/implementation/elements/elements.dart:1602: final Element enclosingElement; enclosingElement is a bad name if ...
8 years, 4 months ago (2012-08-22 13:45:40 UTC) #2
ahe
Hi Johnni, Thank you for taking a look. I have answered some of your comments ...
8 years, 4 months ago (2012-08-22 14:01:54 UTC) #3
Johnni Winther
https://chromiumcodereview.appspot.com/10870010/diff/1/dart/lib/compiler/implementation/scanner/listener.dart File dart/lib/compiler/implementation/scanner/listener.dart (right): https://chromiumcodereview.appspot.com/10870010/diff/1/dart/lib/compiler/implementation/scanner/listener.dart#newcode589 dart/lib/compiler/implementation/scanner/listener.dart:589: beginToken)); On 2012/08/22 14:01:54, ahe wrote: > On 2012/08/22 ...
8 years, 4 months ago (2012-08-22 14:08:36 UTC) #4
ngeoffray
https://chromiumcodereview.appspot.com/10870010/diff/1/dart/lib/compiler/implementation/resolver.dart File dart/lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10870010/diff/1/dart/lib/compiler/implementation/resolver.dart#newcode404 dart/lib/compiler/implementation/resolver.dart:404: Element fakeElement = new Element(const SourceString(''), Should we have ...
8 years, 4 months ago (2012-08-22 14:28:56 UTC) #5
ahe
Hi Nicolas and Johnni, Thank you for your suggestions. Please take another look. Cheers, Peter ...
8 years, 4 months ago (2012-08-22 17:23:02 UTC) #6
ngeoffray
LGTM! https://chromiumcodereview.appspot.com/10870010/diff/3002/dart/lib/compiler/implementation/elements/elements.dart File dart/lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10870010/diff/3002/dart/lib/compiler/implementation/elements/elements.dart#newcode1607 dart/lib/compiler/implementation/elements/elements.dart:1607: MetadataAnnotation([this.resolutionState = ClassElement.STATE_NOT_STARTED]); Should these constant values be ...
8 years, 4 months ago (2012-08-22 21:57:54 UTC) #7
ahe
https://chromiumcodereview.appspot.com/10870010/diff/3002/dart/lib/compiler/implementation/elements/elements.dart File dart/lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10870010/diff/3002/dart/lib/compiler/implementation/elements/elements.dart#newcode1607 dart/lib/compiler/implementation/elements/elements.dart:1607: MetadataAnnotation([this.resolutionState = ClassElement.STATE_NOT_STARTED]); On 2012/08/22 21:57:54, ngeoffray wrote: > ...
8 years, 4 months ago (2012-08-23 05:43:34 UTC) #8
Johnni Winther
lgtm https://chromiumcodereview.appspot.com/10870010/diff/5012/dart/lib/compiler/implementation/patch_parser.dart File dart/lib/compiler/implementation/patch_parser.dart (right): https://chromiumcodereview.appspot.com/10870010/diff/5012/dart/lib/compiler/implementation/patch_parser.dart#newcode295 dart/lib/compiler/implementation/patch_parser.dart:295: // Note: we never set [annotatedElement] for this ...
8 years, 4 months ago (2012-08-23 08:06:18 UTC) #9
ahe
https://chromiumcodereview.appspot.com/10870010/diff/5012/dart/lib/compiler/implementation/patch_parser.dart File dart/lib/compiler/implementation/patch_parser.dart (right): https://chromiumcodereview.appspot.com/10870010/diff/5012/dart/lib/compiler/implementation/patch_parser.dart#newcode295 dart/lib/compiler/implementation/patch_parser.dart:295: // Note: we never set [annotatedElement] for this class. ...
8 years, 4 months ago (2012-08-23 08:11:55 UTC) #10
ahe
https://chromiumcodereview.appspot.com/10870010/diff/5012/dart/lib/compiler/implementation/patch_parser.dart File dart/lib/compiler/implementation/patch_parser.dart (right): https://chromiumcodereview.appspot.com/10870010/diff/5012/dart/lib/compiler/implementation/patch_parser.dart#newcode295 dart/lib/compiler/implementation/patch_parser.dart:295: // Note: we never set [annotatedElement] for this class. ...
8 years, 4 months ago (2012-08-23 08:30:14 UTC) #11
ahe
8 years, 4 months ago (2012-08-23 09:04:33 UTC) #12
https://chromiumcodereview.appspot.com/10870010/diff/5012/dart/lib/compiler/i...
File dart/lib/compiler/implementation/patch_parser.dart (right):

https://chromiumcodereview.appspot.com/10870010/diff/5012/dart/lib/compiler/i...
dart/lib/compiler/implementation/patch_parser.dart:295: // Note: we never set
[annotatedElement] for this class.
On 2012/08/23 08:30:15, ahe wrote:
> On 2012/08/23 08:11:55, ahe wrote:
> > On 2012/08/23 08:06:18, Johnni Winther wrote:
> > > Why not?
> > 
> > See line 294. 
> 
> Perhaps this is no longer true. 

I removed the comment in https://chromiumcodereview.appspot.com/10876036.

Powered by Google App Engine
This is Rietveld 408576698