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

Side by Side Diff: src/objects-inl.h

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 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 } 1964 }
1965 1965
1966 double Oddball::to_number_raw() const { 1966 double Oddball::to_number_raw() const {
1967 return READ_DOUBLE_FIELD(this, kToNumberRawOffset); 1967 return READ_DOUBLE_FIELD(this, kToNumberRawOffset);
1968 } 1968 }
1969 1969
1970 void Oddball::set_to_number_raw(double value) { 1970 void Oddball::set_to_number_raw(double value) {
1971 WRITE_DOUBLE_FIELD(this, kToNumberRawOffset, value); 1971 WRITE_DOUBLE_FIELD(this, kToNumberRawOffset, value);
1972 } 1972 }
1973 1973
1974 void Oddball::set_to_number_raw_as_bits(uint64_t bits) {
1975 WRITE_UINT64_FIELD(this, kToNumberRawOffset, bits);
1976 }
1977
1974 ACCESSORS(Oddball, to_string, String, kToStringOffset) 1978 ACCESSORS(Oddball, to_string, String, kToStringOffset)
1975 ACCESSORS(Oddball, to_number, Object, kToNumberOffset) 1979 ACCESSORS(Oddball, to_number, Object, kToNumberOffset)
1976 ACCESSORS(Oddball, type_of, String, kTypeOfOffset) 1980 ACCESSORS(Oddball, type_of, String, kTypeOfOffset)
1977 1981
1978 1982
1979 byte Oddball::kind() const { 1983 byte Oddball::kind() const {
1980 return Smi::cast(READ_FIELD(this, kKindOffset))->value(); 1984 return Smi::cast(READ_FIELD(this, kKindOffset))->value();
1981 } 1985 }
1982 1986
1983 1987
(...skipping 6286 matching lines...) Expand 10 before | Expand all | Expand 10 after
8270 #undef WRITE_BYTE_FIELD 8274 #undef WRITE_BYTE_FIELD
8271 #undef NOBARRIER_READ_BYTE_FIELD 8275 #undef NOBARRIER_READ_BYTE_FIELD
8272 #undef NOBARRIER_WRITE_BYTE_FIELD 8276 #undef NOBARRIER_WRITE_BYTE_FIELD
8273 8277
8274 } // namespace internal 8278 } // namespace internal
8275 } // namespace v8 8279 } // namespace v8
8276 8280
8277 #include "src/objects/object-macros-undef.h" 8281 #include "src/objects/object-macros-undef.h"
8278 8282
8279 #endif // V8_OBJECTS_INL_H_ 8283 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698