mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
LibJS: Export MAX_ARRAY_LIKE_INDEX & NEGATIVE_ZERO_BITS in JS namespace
This commit is contained in:
parent
f86ec46a6e
commit
56ec36a9dc
1 changed files with 2 additions and 2 deletions
|
@ -21,13 +21,13 @@
|
|||
#include <LibJS/Heap/GCPtr.h>
|
||||
#include <math.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
// 2 ** 53 - 1
|
||||
static constexpr double MAX_ARRAY_LIKE_INDEX = 9007199254740991.0;
|
||||
// Unique bit representation of negative zero (only sign bit set)
|
||||
static constexpr u64 NEGATIVE_ZERO_BITS = ((u64)1 << 63);
|
||||
|
||||
namespace JS {
|
||||
|
||||
static_assert(sizeof(double) == 8);
|
||||
static_assert(sizeof(void*) == sizeof(double) || sizeof(void*) == sizeof(u32));
|
||||
// To make our Value representation compact we can use the fact that IEEE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue