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

Unified Diff: lib/compiler/implementation/enqueue.dart

Issue 10539156: Track fields which are known to be always set to integer constants (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index a064a6bdfa27dbc6a415e7d89ae9228946b55889..b672eef18b419540740b6f242a35866257e607e3 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -302,11 +302,12 @@ class Enqueuer {
});
}
- void registerFieldSetter(SourceString setterName, Type type) {
+ void registerFieldSetter(SourceString setterName, Type type, bool isInteger) {
task.measure(() {
registerNewSelector(setterName,
new TypedSelector(type, Selector.SETTER),
universe.fieldSetters);
+ universe.updateFieldIntegerSetters(type, setterName, isInteger);
});
}
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/codegen.dart » ('j') | lib/compiler/implementation/ssa/codegen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698