diff options
author | Michaël Zasso <targos@protonmail.com> | 2020-07-13 10:39:42 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2020-07-13 14:41:41 +0200 |
commit | 12478684aab233942e0d5dc24f195930c8a5e59d (patch) | |
tree | 97dbee955ab91d4df480bcb82274d710a2195e64 /deps/v8/src/objects/heap-number.h | |
parent | 913d36d97da187a3804f6cfa96b4d24a8b7be78a (diff) | |
download | node-new-12478684aab233942e0d5dc24f195930c8a5e59d.tar.gz |
deps: update V8 to 8.4.371.19
PR-URL: https://github.com/nodejs/node/pull/33579
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'deps/v8/src/objects/heap-number.h')
-rw-r--r-- | deps/v8/src/objects/heap-number.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/deps/v8/src/objects/heap-number.h b/deps/v8/src/objects/heap-number.h index 259e23a41d..4e77a52340 100644 --- a/deps/v8/src/objects/heap-number.h +++ b/deps/v8/src/objects/heap-number.h @@ -15,12 +15,9 @@ namespace internal { // The HeapNumber class describes heap allocated numbers that cannot be // represented in a Smi (small integer). -class HeapNumber : public PrimitiveHeapObject { +class HeapNumber + : public TorqueGeneratedHeapNumber<HeapNumber, PrimitiveHeapObject> { public: - // [value]: number value. - inline double value() const; - inline void set_value(double value); - inline uint64_t value_as_bits() const; inline void set_value_as_bits(uint64_t bits); @@ -28,7 +25,6 @@ class HeapNumber : public PrimitiveHeapObject { inline int get_sign(); // Layout description. - static const int kValueOffset = PrimitiveHeapObject::kHeaderSize; // IEEE doubles are two 32 bit words. The first is just mantissa, the second // is a mixture of sign, exponent and mantissa. The offsets of two 32 bit // words within double numbers are endian dependent and they are set @@ -43,7 +39,6 @@ class HeapNumber : public PrimitiveHeapObject { #error Unknown byte ordering #endif - static const int kSize = kValueOffset + kDoubleSize; static const uint32_t kSignMask = 0x80000000u; static const uint32_t kExponentMask = 0x7ff00000u; static const uint32_t kMantissaMask = 0xfffffu; @@ -56,12 +51,10 @@ class HeapNumber : public PrimitiveHeapObject { static const int kMantissaBitsInTopWord = 20; static const int kNonMantissaBitsInTopWord = 12; - DECL_CAST(HeapNumber) - DECL_VERIFIER(HeapNumber) DECL_PRINTER(HeapNumber) V8_EXPORT_PRIVATE void HeapNumberShortPrint(std::ostream& os); - OBJECT_CONSTRUCTORS(HeapNumber, PrimitiveHeapObject); + TQ_OBJECT_CONSTRUCTORS(HeapNumber) }; } // namespace internal |