From: olivf@chromium.org Date: Tue, 17 Sep 2013 12:20:41 +0000 (+0000) Subject: Ensure constant truncation is only done when it is safe. X-Git-Tag: upstream/4.7.83~12458 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a50eb6611ee50d6354b234f090fd2ed5f6e5a87;p=platform%2Fupstream%2Fv8.git Ensure constant truncation is only done when it is safe. BUG= R=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/23654041 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16766 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc index 3c44825..4936a16 100644 --- a/src/hydrogen-instructions.cc +++ b/src/hydrogen-instructions.cc @@ -2575,10 +2575,6 @@ Maybe HConstant::CopyToTruncatedInt32(Zone* zone) { Representation::Integer32(), is_not_in_new_space_, handle_); - } else { - ASSERT(!HasNumberValue()); - Maybe number = CopyToTruncatedNumber(zone); - if (number.has_value) return number.value->CopyToTruncatedInt32(zone); } return Maybe(res != NULL, res); }