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

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

Issue 10575030: Add a typeannotation and a missing argument to remove warnings. (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
« no previous file with comments | « no previous file | lib/compiler/implementation/unparse_validator.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 c5525630131108cd5bea3fcf5d88119f22eadc0d..1b14d315d39a57808086698d9f343eeb61543cdf 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -1576,7 +1576,8 @@ class HShiftLeft extends HBinaryBitOp {
bool get builtin() {
if (!left.isInteger() || !right.isConstantInteger()) return false;
HConstant rightConstant = right;
- int count = rightConstant.constant.value;
+ IntConstant intConstant = rightConstant.constant;
+ int count = intConstant.value;
return count >= 0 && count <= 31;
}
« no previous file with comments | « no previous file | lib/compiler/implementation/unparse_validator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698