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

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 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/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index 4be3b22b64389a979d66201f47e077f79430dcfa..3376afd025d6e0ad00b3264c7cc38551850c66e9 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -115,6 +115,7 @@ class HGraph {
HBasicBlock exit;
bool isRecursiveMethod = false;
bool calledInLoop = false;
+ bool highTypeLikelyhood = false;
final List<HBasicBlock> blocks;
// We canonicalize all constants used within a graph so we do not
@@ -1795,6 +1796,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();
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698