Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index bdcdc22890a8f80a28ef33e7640c1b52db6eb9af..ef454e2c4e4604310f861683e0a9cfaea04d9656 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -2869,7 +2869,7 @@ void HConstant::Initialize(Representation r) { |
// could cause heap object checks not to get emitted. |
object_ = Unique<Object>(Handle<Object>::null()); |
} |
- if (r.IsSmiOrInteger32()) { |
+ if (r.IsSmiOrInteger32() && object_.handle().is_null()) { |
// If it's not a heap object, it can't be in new space. |
bit_field_ = IsNotInNewSpaceField::update(bit_field_, true); |
} |