Index: src/heap.cc |
=================================================================== |
--- src/heap.cc (revision 10321) |
+++ src/heap.cc (working copy) |
@@ -2318,6 +2318,11 @@ |
} |
set_infinity_value(HeapNumber::cast(obj)); |
+ // The oddbals have not been created yet, but we want to put something predictable |
+ // in the gaps in the symbol table, so lets make that Smi zero. |
+ set_undefined(reinterpret_cast<Oddball*>(Smi::FromInt(0))); |
+ set_the_hole_value(reinterpret_cast<Oddball*>(Smi::FromInt(0))); |
+ |
// Allocate initial symbol table. |
{ MaybeObject* maybe_obj = SymbolTable::Allocate(kInitialSymbolTableSize); |
if (!maybe_obj->ToObject(&obj)) return false; |