Commit 1a50eb66 authored by olivf@chromium.org's avatar olivf@chromium.org

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
parent 4a90f2e1
......@@ -2575,10 +2575,6 @@ Maybe<HConstant*> HConstant::CopyToTruncatedInt32(Zone* zone) {
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment