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

Unified Diff: lib/compiler/implementation/ssa/nodes.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 review comment and addressed initializers 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/ssa/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index 0d6bb70f794abbcb31a2ea8f7c1da901b83f25c2..4a34a9db10b9c03f7461801793b9ad86e6a482e1 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -1804,6 +1804,7 @@ class HConstant extends HInstruction {
bool isConstantBoolean() => constant.isBool();
bool isConstantNull() => constant.isNull();
bool isConstantNumber() => constant.isNum();
+ bool isConstantInteger() => constant.isInt();
bool isConstantString() => constant.isString();
bool isConstantList() => constant.isList();
bool isConstantMap() => constant.isMap();

Powered by Google App Engine
This is Rietveld 408576698