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

Side by Side Diff: src/serialize.cc

Issue 863633002: Use signaling NaN for holes in fixed double arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Restore SSE2 Created 5 years, 11 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 Add(ExternalReference::address_of_negative_infinity().address(), 156 Add(ExternalReference::address_of_negative_infinity().address(),
157 "LDoubleConstant::negative_infinity"); 157 "LDoubleConstant::negative_infinity");
158 Add(ExternalReference::power_double_double_function(isolate).address(), 158 Add(ExternalReference::power_double_double_function(isolate).address(),
159 "power_double_double_function"); 159 "power_double_double_function");
160 Add(ExternalReference::power_double_int_function(isolate).address(), 160 Add(ExternalReference::power_double_int_function(isolate).address(),
161 "power_double_int_function"); 161 "power_double_int_function");
162 Add(ExternalReference::math_log_double_function(isolate).address(), 162 Add(ExternalReference::math_log_double_function(isolate).address(),
163 "std::log"); 163 "std::log");
164 Add(ExternalReference::store_buffer_top(isolate).address(), 164 Add(ExternalReference::store_buffer_top(isolate).address(),
165 "store_buffer_top"); 165 "store_buffer_top");
166 Add(ExternalReference::address_of_canonical_non_hole_nan().address(),
167 "canonical_nan");
168 Add(ExternalReference::address_of_the_hole_nan().address(), "the_hole_nan"); 166 Add(ExternalReference::address_of_the_hole_nan().address(), "the_hole_nan");
169 Add(ExternalReference::get_date_field_function(isolate).address(), 167 Add(ExternalReference::get_date_field_function(isolate).address(),
170 "JSDate::GetField"); 168 "JSDate::GetField");
171 Add(ExternalReference::date_cache_stamp(isolate).address(), 169 Add(ExternalReference::date_cache_stamp(isolate).address(),
172 "date_cache_stamp"); 170 "date_cache_stamp");
173 Add(ExternalReference::address_of_pending_message_obj(isolate).address(), 171 Add(ExternalReference::address_of_pending_message_obj(isolate).address(),
174 "address_of_pending_message_obj"); 172 "address_of_pending_message_obj");
175 Add(ExternalReference::address_of_has_pending_message(isolate).address(), 173 Add(ExternalReference::address_of_has_pending_message(isolate).address(),
176 "address_of_has_pending_message"); 174 "address_of_has_pending_message");
177 Add(ExternalReference::address_of_pending_message_script(isolate).address(), 175 Add(ExternalReference::address_of_pending_message_script(isolate).address(),
(...skipping 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 return GetHeaderValue(kNumInternalizedStringsOffset); 2548 return GetHeaderValue(kNumInternalizedStringsOffset);
2551 } 2549 }
2552 2550
2553 Vector<const uint32_t> SerializedCodeData::CodeStubKeys() const { 2551 Vector<const uint32_t> SerializedCodeData::CodeStubKeys() const {
2554 int reservations_size = GetHeaderValue(kReservationsOffset) * kInt32Size; 2552 int reservations_size = GetHeaderValue(kReservationsOffset) * kInt32Size;
2555 const byte* start = data_ + kHeaderSize + reservations_size; 2553 const byte* start = data_ + kHeaderSize + reservations_size;
2556 return Vector<const uint32_t>(reinterpret_cast<const uint32_t*>(start), 2554 return Vector<const uint32_t>(reinterpret_cast<const uint32_t*>(start),
2557 GetHeaderValue(kNumCodeStubKeysOffset)); 2555 GetHeaderValue(kNumCodeStubKeysOffset));
2558 } 2556 }
2559 } } // namespace v8::internal 2557 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698