Fix alignment in case of enabled 32bit compressed pointers (#1764)
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
@@ -15,6 +15,12 @@
|
|||||||
|
|
||||||
#include "js-parser-internal.h"
|
#include "js-parser-internal.h"
|
||||||
|
|
||||||
|
JERRY_STATIC_ASSERT ((sizeof (cbc_uint8_arguments_t) % sizeof (jmem_cpointer_t)) == 0,
|
||||||
|
sizeof_cbc_uint8_arguments_t_must_be_divisible_by_sizeof_jmem_cpointer_t);
|
||||||
|
|
||||||
|
JERRY_STATIC_ASSERT ((sizeof (cbc_uint16_arguments_t) % sizeof (jmem_cpointer_t)) == 0,
|
||||||
|
sizeof_cbc_uint16_arguments_t_must_be_divisible_by_sizeof_jmem_cpointer_t);
|
||||||
|
|
||||||
#if JERRY_JS_PARSER
|
#if JERRY_JS_PARSER
|
||||||
|
|
||||||
/** \addtogroup parser Parser
|
/** \addtogroup parser Parser
|
||||||
|
|||||||
@@ -637,6 +637,9 @@ typedef struct
|
|||||||
uint16_t ident_end; /**< end position of the identifier group */
|
uint16_t ident_end; /**< end position of the identifier group */
|
||||||
uint16_t const_literal_end; /**< end position of the const literal group */
|
uint16_t const_literal_end; /**< end position of the const literal group */
|
||||||
uint16_t literal_end; /**< end position of the literal group */
|
uint16_t literal_end; /**< end position of the literal group */
|
||||||
|
#ifdef JERRY_CPOINTER_32_BIT
|
||||||
|
uint16_t padding; /**< an unused value */
|
||||||
|
#endif
|
||||||
} cbc_uint16_arguments_t;
|
} cbc_uint16_arguments_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user