Commit d24d9616 authored by verwaest@chromium.org's avatar verwaest@chromium.org

Clear new-space promotion if the type is smi.

R=mvstanton@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15098002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14616 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 911c1455
...@@ -1678,6 +1678,7 @@ Range* HChange::InferRange(Zone* zone) { ...@@ -1678,6 +1678,7 @@ Range* HChange::InferRange(Zone* zone) {
!value()->CheckFlag(HInstruction::kUint32) && !value()->CheckFlag(HInstruction::kUint32) &&
input_range != NULL && input_range->IsInSmiRange()) { input_range != NULL && input_range->IsInSmiRange()) {
set_type(HType::Smi()); set_type(HType::Smi());
ClearGVNFlag(kChangesNewSpacePromotion);
} }
Range* result = (input_range != NULL) Range* result = (input_range != NULL)
? input_range->Copy(zone) ? input_range->Copy(zone)
......
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