Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index d95da5e022519a5385e0206ca2efeeb4a2d7e829..2f0fc1b2facbb8a7de0eea0de089ad351ec4e5da 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2290,6 +2290,7 @@ bool Heap::CreateInitialMaps() { |
ALLOCATE_MAP(ODDBALL_TYPE, Oddball::kSize, exception); |
ALLOCATE_MAP(ODDBALL_TYPE, Oddball::kSize, termination_exception); |
ALLOCATE_MAP(ODDBALL_TYPE, Oddball::kSize, optimized_out); |
+ ALLOCATE_MAP(ODDBALL_TYPE, Oddball::kSize, stale_register); |
for (unsigned i = 0; i < arraysize(string_type_table); i++) { |
const StringTypeTable& entry = string_type_table[i]; |
@@ -2664,6 +2665,11 @@ void Heap::CreateInitialObjects() { |
handle(Smi::FromInt(-6), isolate()), false, |
"undefined", Oddball::kOptimizedOut)); |
+ set_stale_register( |
+ *factory->NewOddball(factory->stale_register_map(), "stale_register", |
+ handle(Smi::FromInt(-7), isolate()), false, |
+ "undefined", Oddball::kStaleRegister)); |
+ |
for (unsigned i = 0; i < arraysize(constant_string_table); i++) { |
Handle<String> str = |
factory->InternalizeUtf8String(constant_string_table[i].contents); |