Remove recursion limit from RegExp engine.

Related issue: #388

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2015-08-04 13:11:39 +02:00
parent 9cc706d21d
commit 7aacb8fc01
4 changed files with 0 additions and 66 deletions
-6
View File
@@ -61,11 +61,6 @@ typedef enum
RE_OP_INV_CHAR_CLASS
} re_opcode_t;
/**
* Recursion limit of RegExp compiler
*/
#define RE_COMPILE_RECURSION_LIMIT 100
/**
* Check if a RegExp opcode is a capture group or not
*/
@@ -92,7 +87,6 @@ typedef struct
typedef struct
{
uint8_t flags; /**< RegExp flags */
uint32_t recursion_depth; /**< recursion depth */
uint32_t num_of_captures; /**< number of capture groups */
uint32_t num_of_non_captures; /**< number of non-capture groups */
uint32_t highest_backref; /**< highest backreference */