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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user