Reviewed by Geoff.
This gives a 0.1% improvement in SunSpider.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28916
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-12-20 Oliver Hunt <oliver@apple.com>
+
+ Reviewed by Geoff.
+
+ Slight logic reordering in JSImmediate::from(double)
+
+ This gives a 0.1% improvement in SunSpider.
+
+ * kjs/JSImmediate.h:
+ (KJS::JSImmediate::from):
+
2007-12-20 Eric Seidel <eric@webkit.org>
Reviewed by Geoff, then re-rubber-stamped by Geoff after final search/replace and testing.
2007-12-20 Eric Seidel <eric@webkit.org>
Reviewed by Geoff, then re-rubber-stamped by Geoff after final search/replace and testing.
return 0;
// Check for data loss from conversion to int.
return 0;
// Check for data loss from conversion to int.
- if ((intVal != d) || (signbit(d) && !intVal))
+ if ((intVal != d) || (!intVal && signbit(d)))
return 0;
return tag(intVal << 2, NumberType);
return 0;
return tag(intVal << 2, NumberType);