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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <memory> 9 #include <memory>
10 #include <sstream> 10 #include <sstream>
(...skipping 13105 matching lines...) Expand 10 before | Expand all | Expand 10 after
13116 return builder.Finish().ToHandleChecked(); 13116 return builder.Finish().ToHandleChecked();
13117 } 13117 }
13118 13118
13119 void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball, 13119 void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball,
13120 const char* to_string, Handle<Object> to_number, 13120 const char* to_string, Handle<Object> to_number,
13121 const char* type_of, byte kind) { 13121 const char* type_of, byte kind) {
13122 Handle<String> internalized_to_string = 13122 Handle<String> internalized_to_string =
13123 isolate->factory()->InternalizeUtf8String(to_string); 13123 isolate->factory()->InternalizeUtf8String(to_string);
13124 Handle<String> internalized_type_of = 13124 Handle<String> internalized_type_of =
13125 isolate->factory()->InternalizeUtf8String(type_of); 13125 isolate->factory()->InternalizeUtf8String(type_of);
13126 oddball->set_to_number_raw(to_number->Number()); 13126 if (to_number->IsHeapNumber()) {
13127 oddball->set_to_number_raw_as_bits(
13128 Handle<HeapNumber>::cast(to_number)->value_as_bits());
13129 } else {
13130 oddball->set_to_number_raw(to_number->Number());
13131 }
13127 oddball->set_to_number(*to_number); 13132 oddball->set_to_number(*to_number);
13128 oddball->set_to_string(*internalized_to_string); 13133 oddball->set_to_string(*internalized_to_string);
13129 oddball->set_type_of(*internalized_type_of); 13134 oddball->set_type_of(*internalized_type_of);
13130 oddball->set_kind(kind); 13135 oddball->set_kind(kind);
13131 } 13136 }
13132 13137
13133 void Script::SetEvalOrigin(Handle<Script> script, 13138 void Script::SetEvalOrigin(Handle<Script> script,
13134 Handle<SharedFunctionInfo> outer_info, 13139 Handle<SharedFunctionInfo> outer_info,
13135 int eval_position) { 13140 int eval_position) {
13136 if (eval_position == kNoSourcePosition) { 13141 if (eval_position == kNoSourcePosition) {
(...skipping 7314 matching lines...) Expand 10 before | Expand all | Expand 10 after
20451 // depend on this. 20456 // depend on this.
20452 return DICTIONARY_ELEMENTS; 20457 return DICTIONARY_ELEMENTS;
20453 } 20458 }
20454 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20459 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20455 return kind; 20460 return kind;
20456 } 20461 }
20457 } 20462 }
20458 20463
20459 } // namespace internal 20464 } // namespace internal
20460 } // namespace v8 20465 } // namespace v8
OLDNEW
« 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