Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 1fcfdd7675586de2934facc4f0e11f26dd96bc68..2d8faee9821b36cf5dc8f70b5bc41d2c368d443e 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -746,13 +746,10 @@ bool Object::FilterKey(PropertyFilter filter) { |
Handle<Object> Object::NewStorageFor(Isolate* isolate, Handle<Object> object, |
Representation representation) { |
- if (representation.IsSmi() && object->IsUninitialized(isolate)) { |
- return handle(Smi::kZero, isolate); |
- } |
if (!representation.IsDouble()) return object; |
double value; |
if (object->IsUninitialized(isolate)) { |
- value = 0; |
+ value = bit_cast<double>(kHoleNanInt64); |
} else if (object->IsMutableHeapNumber()) { |
value = HeapNumber::cast(*object)->value(); |
} else { |