Add JERRY_FEATURE_JS_PARSER to compile time enabled feature types. (#1487)
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -26,8 +26,9 @@ Possible types of an error:
|
||||
|
||||
Possible compile time enabled feature types:
|
||||
|
||||
- JERRY_FEATURE_ERROR_MESSAGES - error messages
|
||||
- JERRY_FEATURE_CPOINTER_32_BIT - 32 bit compressed pointers
|
||||
- JERRY_FEATURE_ERROR_MESSAGES - error messages
|
||||
- JERRY_FEATURE_JS_PARSER - js-parser
|
||||
- JERRY_FEATURE_MEM_STATS - memory statistics
|
||||
- JERRY_FEATURE_PARSER_DUMP - parser byte-code dumps
|
||||
- JERRY_FEATURE_REGEXP_DUMP - regexp byte-code dumps
|
||||
|
||||
@@ -69,8 +69,9 @@ typedef enum
|
||||
|
||||
typedef enum
|
||||
{
|
||||
JERRY_FEATURE_ERROR_MESSAGES, /**< error messages */
|
||||
JERRY_FEATURE_CPOINTER_32_BIT, /**< 32 bit compressed pointers */
|
||||
JERRY_FEATURE_ERROR_MESSAGES, /**< error messages */
|
||||
JERRY_FEATURE_JS_PARSER, /**< js-parser */
|
||||
JERRY_FEATURE_MEM_STATS, /**< memory statistics */
|
||||
JERRY_FEATURE_PARSER_DUMP, /**< parser byte-code dumps */
|
||||
JERRY_FEATURE_REGEXP_DUMP, /**< regexp byte-code dumps */
|
||||
|
||||
+6
-3
@@ -515,12 +515,15 @@ bool jerry_is_feature_enabled (const jerry_feature_t feature)
|
||||
JERRY_ASSERT (feature < JERRY_FEATURE__COUNT);
|
||||
|
||||
return (false
|
||||
#ifdef JERRY_ENABLE_ERROR_MESSAGES
|
||||
|| feature == JERRY_FEATURE_ERROR_MESSAGES
|
||||
#endif /* JERRY_ENABLE_ERROR_MESSAGES */
|
||||
#ifdef JERRY_CPOINTER_32_BIT
|
||||
|| feature == JERRY_FEATURE_CPOINTER_32_BIT
|
||||
#endif /* JERRY_CPOINTER_32_BIT */
|
||||
#ifdef JERRY_ENABLE_ERROR_MESSAGES
|
||||
|| feature == JERRY_FEATURE_ERROR_MESSAGES
|
||||
#endif /* JERRY_ENABLE_ERROR_MESSAGES */
|
||||
#ifdef JERRY_JS_PARSER
|
||||
|| feature == JERRY_FEATURE_JS_PARSER
|
||||
#endif /* JERRY_JS_PARSER */
|
||||
#ifdef JMEM_STATS
|
||||
|| feature == JERRY_FEATURE_MEM_STATS
|
||||
#endif /* JMEM_STATS */
|
||||
|
||||
Reference in New Issue
Block a user