Chromium Code Reviews
DescriptionEvaluate constant instance creation expressions in ConstantValueComputer.
Previously, we evaluated them in ConstantVisitor; as a result we
couldn't take advantage of the ConstantValueComputer's depedendency
graph, so we couldn't detect cycles involving constant constructor
declarations. This will become important soon, when we expand our
constant evaluation logic to traverse constructor field initializers.
With this change, ConstantValueComputer stores the computed value of
each constant instance creation expression in the AST (similar to how
it stores the computed value of each constant variable in the element
model), and ConstantVisitor simply looks up the already-computed
value.
R=brianwilkerson@google.com
Committed: https://code.google.com/p/dart/source/detail?r=35969
Patch Set 1 #
Total comments: 8
Messages
Total messages: 5 (0 generated)
|