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

Issue 10694091: Collect the actual types for all field setters. (Closed)

Created:
8 years, 5 months ago by Søren Gjesse
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Collect the actual types for all field setters. Before only boolean indicating whether the type was HType.INTEGER or not was collected. Now collect the union of all types seen for setters for each field. R=floitsch@google.com, ager@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=9422

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -20 lines) Patch
M lib/compiler/implementation/compiler.dart View 3 chunks +13 lines, -11 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/ssa/optimize.dart View 3 chunks +11 lines, -7 lines 4 comments Download

Messages

Total messages: 5 (0 generated)
Søren Gjesse
8 years, 5 months ago (2012-07-05 13:34:21 UTC) #1
Mads Ager (google)
LGTM! https://chromiumcodereview.appspot.com/10694091/diff/1/lib/compiler/implementation/ssa/optimize.dart File lib/compiler/implementation/ssa/optimize.dart (right): https://chromiumcodereview.appspot.com/10694091/diff/1/lib/compiler/implementation/ssa/optimize.dart#newcode1223 lib/compiler/implementation/ssa/optimize.dart:1223: if ((backend.fieldSettersTypeSoFar(left.element).isUnknown() || We should probably generalize these ...
8 years, 5 months ago (2012-07-05 13:42:53 UTC) #2
Mads Ager (google)
https://chromiumcodereview.appspot.com/10694091/diff/1/lib/compiler/implementation/ssa/optimize.dart File lib/compiler/implementation/ssa/optimize.dart (right): https://chromiumcodereview.appspot.com/10694091/diff/1/lib/compiler/implementation/ssa/optimize.dart#newcode1191 lib/compiler/implementation/ssa/optimize.dart:1191: if (!compiler.codegenWorld.hasInvokedSetter(field, compiler)) { Should this be the resolverWorld? ...
8 years, 5 months ago (2012-07-05 13:55:19 UTC) #3
Mads Ager (google)
https://chromiumcodereview.appspot.com/10694091/diff/1/lib/compiler/implementation/ssa/optimize.dart File lib/compiler/implementation/ssa/optimize.dart (right): https://chromiumcodereview.appspot.com/10694091/diff/1/lib/compiler/implementation/ssa/optimize.dart#newcode1191 lib/compiler/implementation/ssa/optimize.dart:1191: if (!compiler.codegenWorld.hasInvokedSetter(field, compiler)) { On 2012/07/05 13:55:19, Mads Ager ...
8 years, 5 months ago (2012-07-05 13:56:53 UTC) #4
Søren Gjesse
8 years, 5 months ago (2012-07-06 04:10:32 UTC) #5
http://codereview.chromium.org/10694091/diff/1/lib/compiler/implementation/ss...
File lib/compiler/implementation/ssa/optimize.dart (right):

http://codereview.chromium.org/10694091/diff/1/lib/compiler/implementation/ss...
lib/compiler/implementation/ssa/optimize.dart:1223: if
((backend.fieldSettersTypeSoFar(left.element).isUnknown() ||
On 2012/07/05 13:42:53, Mads Ager wrote:
> We should probably generalize these things as well. For instance it might make
> sense to optimize for numbers as well as only integers?
> 
> We can play with that in a separate change.

Will do.

Powered by Google App Engine
This is Rietveld 408576698