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

Unified Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 10694091: Collect the actual types for all field setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index dd0f2b1ee79ac4370174d972812fad631e0ee86f..3b798e90166f124ae332d6251f5e0601ceea7300 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -1864,8 +1864,8 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
if (!work.element.isGenerativeConstructorBody()) {
world.registerFieldSetter(node.element.name, type);
}
- backend.updateFieldIntegerSetters(node.element,
- node.value.isInteger());
+ backend.updateFieldSetters(node.element,
+ node.value.propagatedType);
}
buffer.add(' = ');
use(node.value, JSPrecedence.ASSIGNMENT_PRECEDENCE);

Powered by Google App Engine
This is Rietveld 408576698