OLD | NEW |
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 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 8821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8832 int index_; | 8832 int index_; |
8833 }; | 8833 }; |
8834 | 8834 |
8835 | 8835 |
8836 // The Oddball describes objects null, undefined, true, and false. | 8836 // The Oddball describes objects null, undefined, true, and false. |
8837 class Oddball: public HeapObject { | 8837 class Oddball: public HeapObject { |
8838 public: | 8838 public: |
8839 // [to_number_raw]: Cached raw to_number computed at startup. | 8839 // [to_number_raw]: Cached raw to_number computed at startup. |
8840 inline double to_number_raw() const; | 8840 inline double to_number_raw() const; |
8841 inline void set_to_number_raw(double value); | 8841 inline void set_to_number_raw(double value); |
| 8842 inline void set_to_number_raw_as_bits(uint64_t bits); |
8842 | 8843 |
8843 // [to_string]: Cached to_string computed at startup. | 8844 // [to_string]: Cached to_string computed at startup. |
8844 DECL_ACCESSORS(to_string, String) | 8845 DECL_ACCESSORS(to_string, String) |
8845 | 8846 |
8846 // [to_number]: Cached to_number computed at startup. | 8847 // [to_number]: Cached to_number computed at startup. |
8847 DECL_ACCESSORS(to_number, Object) | 8848 DECL_ACCESSORS(to_number, Object) |
8848 | 8849 |
8849 // [typeof]: Cached type_of computed at startup. | 8850 // [typeof]: Cached type_of computed at startup. |
8850 DECL_ACCESSORS(type_of, String) | 8851 DECL_ACCESSORS(type_of, String) |
8851 | 8852 |
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10249 } | 10250 } |
10250 }; | 10251 }; |
10251 | 10252 |
10252 | 10253 |
10253 } // NOLINT, false-positive due to second-order macros. | 10254 } // NOLINT, false-positive due to second-order macros. |
10254 } // NOLINT, false-positive due to second-order macros. | 10255 } // NOLINT, false-positive due to second-order macros. |
10255 | 10256 |
10256 #include "src/objects/object-macros-undef.h" | 10257 #include "src/objects/object-macros-undef.h" |
10257 | 10258 |
10258 #endif // V8_OBJECTS_H_ | 10259 #endif // V8_OBJECTS_H_ |
OLD | NEW |