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

Issue 10700122: Generalize the use of type information for setters and initializers (Closed)

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

Description

Generalize the use of type information for setters and initializers Instead of checking explicitly for integers just union the types involved. This also led to some refactoring getting rid of an almost duplicate method. R=floitsch@google.com, ager@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=9426

Patch Set 1 #

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

Messages

Total messages: 4 (0 generated)
Søren Gjesse
8 years, 5 months ago (2012-07-06 07:34:29 UTC) #1
Mads Ager (google)
LGTM!
8 years, 5 months ago (2012-07-06 07:48:50 UTC) #2
floitsch
LGTM. https://chromiumcodereview.appspot.com/10700122/diff/1/lib/compiler/implementation/ssa/optimize.dart File lib/compiler/implementation/ssa/optimize.dart (right): https://chromiumcodereview.appspot.com/10700122/diff/1/lib/compiler/implementation/ssa/optimize.dart#newcode1239 lib/compiler/implementation/ssa/optimize.dart:1239: // signal to indiate the expected type of ...
8 years, 5 months ago (2012-07-06 09:06:51 UTC) #3
ngeoffray
8 years, 5 months ago (2012-07-11 12:48:43 UTC) #4
https://chromiumcodereview.appspot.com/10700122/diff/1/lib/compiler/implement...
File lib/compiler/implementation/ssa/optimize.dart (right):

https://chromiumcodereview.appspot.com/10700122/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/optimize.dart:1240: left.propagatedType = type;
Isn't that covered by visitFieldGet already?

https://chromiumcodereview.appspot.com/10700122/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/optimize.dart:1245: left.guaranteedType = type;
ditto?

Powered by Google App Engine
This is Rietveld 408576698