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
This commit is contained in:
parent
4a90f2e17b
commit
1a50eb6611
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user