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

Unified Diff: src/objects.cc

Issue 2814013003: [turbofan] Properly represent the float64 hole. (Closed)
Patch Set: Make sure the_hole has the correct hole NaN bit pattern on Win32. Created 3 years, 8 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
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index cc8056402d88dc3859facd8fe85e530a686a196c..b021e271dab521fc010f0e9c694659746265b371 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13123,7 +13123,12 @@ void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball,
isolate->factory()->InternalizeUtf8String(to_string);
Handle<String> internalized_type_of =
isolate->factory()->InternalizeUtf8String(type_of);
- oddball->set_to_number_raw(to_number->Number());
+ if (to_number->IsHeapNumber()) {
+ oddball->set_to_number_raw_as_bits(
+ Handle<HeapNumber>::cast(to_number)->value_as_bits());
+ } else {
+ oddball->set_to_number_raw(to_number->Number());
+ }
oddball->set_to_number(*to_number);
oddball->set_to_string(*internalized_to_string);
oddball->set_type_of(*internalized_type_of);
« src/compiler/simplified-lowering.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698