Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: src/heap/heap.cc

Issue 2236443004: [turbofan] Introduce a dedicated ConvertTaggedHoleToUndefined operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Introduce appropriate Type::Hole Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698