Support large string constants in 32 bit cpointer mode. (#2233)

After this patch, all sunspider tests run when cpointer 32 is enabled.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2018-03-05 11:41:52 +01:00
committed by GitHub
parent 94760b1213
commit b9f96a64d9
5 changed files with 30 additions and 13 deletions
+10 -1
View File
@@ -74,6 +74,15 @@ typedef enum
/* Initialize this variable after the byte code is freed. */
#define LEXER_FLAG_LATE_INIT 0x80
/**
* Type of property length.
*/
#ifdef JERRY_CPOINTER_32_BIT
typedef uint32_t prop_length_t;
#else /* !JERRY_CPOINTER_32_BIT */
typedef uint16_t prop_length_t;
#endif /* JERRY_CPOINTER_32_BIT */
/**
* Literal data.
*/
@@ -93,7 +102,7 @@ typedef struct
union
#endif /* PARSER_DUMP_BYTE_CODE */
{
uint16_t length; /**< length of ident / string literal */
prop_length_t length; /**< length of ident / string literal */
uint16_t index; /**< real index during post processing */
} prop;