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

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: Addressed second round of comments 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
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/ssa/bailout.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index 829dbdcf5f5996217437485ec26e41c003f606ac..035434e6b3e629f734a72344d389a2a1ddef554f 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -289,6 +289,12 @@ class Enqueuer {
addToWorkList(element);
}
+ void registerFieldInitializer(SourceString name, Type type, bool isInteger) {
+ task.measure(() {
+ universe.updateFieldIntegerInitializers(type, name, isInteger);
+ });
+ }
+
void registerDynamicGetter(SourceString methodName, Selector selector) {
registerInvokedGetter(methodName, selector);
}
@@ -305,11 +311,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 | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/ssa/bailout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698