Revision: 16766
Author:   [email protected]
Date:     Tue Sep 17 12:20:41 2013 UTC
Log:      Ensure constant truncation is only done when it is safe.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/23654041
http://code.google.com/p/v8/source/detail?r=16766

Modified:
 /branches/bleeding_edge/src/hydrogen-instructions.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.cc Mon Sep 16 12:41:05 2013 UTC +++ /branches/bleeding_edge/src/hydrogen-instructions.cc Tue Sep 17 12:20:41 2013 UTC
@@ -2575,10 +2575,6 @@
                               Representation::Integer32(),
                               is_not_in_new_space_,
                               handle_);
-  } else {
-    ASSERT(!HasNumberValue());
-    Maybe<HConstant*> number = CopyToTruncatedNumber(zone);
-    if (number.has_value) return number.value->CopyToTruncatedInt32(zone);
   }
   return Maybe<HConstant*>(res != NULL, res);
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to