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

Unified Diff: lib/compiler/implementation/js_backend/constant_system_javascript.dart

Issue 11227042: isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 2 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/js_backend/constant_system_javascript.dart
diff --git a/lib/compiler/implementation/js_backend/constant_system_javascript.dart b/lib/compiler/implementation/js_backend/constant_system_javascript.dart
index f4532b531f07098fe039ecd31f3861a05c9bceca..d73ba48272e567957512fb52d7cad98ba01cb105 100644
--- a/lib/compiler/implementation/js_backend/constant_system_javascript.dart
+++ b/lib/compiler/implementation/js_backend/constant_system_javascript.dart
@@ -196,7 +196,7 @@ class JavaScriptConstantSystem implements ConstantSystem {
} else if (constant.isDouble()) {
DoubleConstant doubleResult = constant;
double doubleValue = doubleResult.value;
- if (!doubleValue.isInfinite() && !doubleValue.isNaN() &&
+ if (!doubleValue.isInfinite && !doubleValue.isNaN &&
!constant.isMinusZero()) {
Mads Ager (google) 2012/10/23 16:06:51 This now looks out of place. Maybe follow up with
floitsch 2012/10/23 16:14:19 The constants have a lot of is-methods. I didn't w
int intValue = doubleValue.toInt();
if (intValue == doubleValue && integerFitsIntoDouble(intValue)) {

Powered by Google App Engine
This is Rietveld 408576698