Change BigInt zero representation to a constant (#4109)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2020-08-06 12:17:39 +02:00
committed by GitHub
parent 7d479ad91b
commit 531f724926
8 changed files with 233 additions and 215 deletions
+10
View File
@@ -2112,6 +2112,16 @@ typedef uint32_t ecma_length_t;
*/
typedef uint32_t ecma_bigint_digit_t;
/**
* Special BigInt value representing zero.
*/
#define ECMA_BIGINT_ZERO ((ecma_value_t) ECMA_TYPE_BIGINT)
/**
* Special BigInt value representing zero when the result is pointer.
*/
#define ECMA_BIGINT_POINTER_TO_ZERO ((ecma_extended_primitive_t *) 0x1)
/**
* Return the size of a BigInt value in ecma_bigint_data_t units.
*/