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

Issue 8222016: Hashcodes were being improperly calculated for public API of libraries. (Closed)

Created:
9 years, 2 months ago by codefu
Modified:
9 years, 2 months ago
Reviewers:
jgw, jbrosenberg
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Hashcodes were being improperly calculated for public API of libraries. This triggers reparsing of files dependent on the API. The error occured because we were checking hashcodes in the frontend while calculating them after normalization/backend. This patch: -Moves calculation of hashcodes to the same functions that generate the API files. -Writes the cached hashcode to depenency files -Includes an end to end test to guard against regression Committed: https://code.google.com/p/dart/source/detail?r=354

Patch Set 1 #

Total comments: 18

Patch Set 2 : Cleanup #

Total comments: 11

Patch Set 3 : Tweaks #

Total comments: 18

Patch Set 4 : More cleanup #

Messages

Total messages: 11 (0 generated)
codefu
9 years, 2 months ago (2011-10-10 22:04:05 UTC) #1
codefu
Performance numbers against Total: full-compile: Before/After-ms(5595 / 5441), stdev(138 / 265), Difference: 154ms (2.75%), Performance: ...
9 years, 2 months ago (2011-10-10 22:04:39 UTC) #2
codefu
added reviewers (sigh)
9 years, 2 months ago (2011-10-10 22:05:22 UTC) #3
jbrosenberg
Looking good, I have some comments. It looks like we still have the 2 different ...
9 years, 2 months ago (2011-10-10 22:46:01 UTC) #4
codefu
On 2011/10/10 22:46:01, jbrosenberg wrote: > It looks like we still have the 2 different ...
9 years, 2 months ago (2011-10-11 13:56:39 UTC) #5
codefu
http://codereview.chromium.org/8222016/diff/1/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java File compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java (left): http://codereview.chromium.org/8222016/diff/1/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java#oldcode109 compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java:109: p("function "); On 2011/10/10 22:46:01, jbrosenberg wrote: > This ...
9 years, 2 months ago (2011-10-11 14:18:07 UTC) #6
jbrosenberg
I think things are cleaner now in DartToSourceVisitor. I still think the alternate hash calculation ...
9 years, 2 months ago (2011-10-11 14:58:44 UTC) #7
codefu
Moved Baz to myother7.dart and created a new test case, even though 13 other tests ...
9 years, 2 months ago (2011-10-11 18:43:54 UTC) #8
jbrosenberg
Very close. Can we still have a single class that processes the hashCode generation? (or ...
9 years, 2 months ago (2011-10-11 21:40:13 UTC) #9
codefu
http://codereview.chromium.org/8222016/diff/8001/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java File compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java (right): http://codereview.chromium.org/8222016/diff/8001/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java#newcode189 compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java:189: if (calculateHash == true) { On 2011/10/11 21:40:13, jbrosenberg ...
9 years, 2 months ago (2011-10-11 22:07:18 UTC) #10
jbrosenberg
9 years, 2 months ago (2011-10-11 22:17:57 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698