Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 46f114f11d8869c7e262fda444ff7c9e6793a8f1..ea8464bdc540d88d632ae04ac6132fc48a5ed858 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2629,8 +2629,8 @@ void Heap::CreateInitialObjects() { |
// Initialize the_hole_value. |
Oddball::Initialize(isolate(), factory->the_hole_value(), "hole", |
- handle(Smi::FromInt(-1), isolate()), "undefined", |
- Oddball::kTheHole); |
+ factory->NewHeapNumber(bit_cast<double>(kHoleNanInt64)), |
Michael Starzinger
2016/08/10 13:59:37
nit: Please pretenure this heap-number to avoid ol
Benedikt Meurer
2016/08/10 14:01:00
Done.
|
+ "undefined", Oddball::kTheHole); |
// Initialize the true_value. |
Oddball::Initialize(isolate(), factory->true_value(), "true", |