Optimize lit_char_is_unicode_letter.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-07-27 17:33:54 +03:00
committed by Evgeny Gavrin
parent 502f4c4623
commit 656908ecaf
+6
View File
@@ -15,6 +15,8 @@
#include "lit-char-helpers.h" #include "lit-char-helpers.h"
#include "lit-strings.h"
/** /**
* Check if specified character is one of the Format-Control characters * Check if specified character is one of the Format-Control characters
* *
@@ -112,6 +114,10 @@ lit_char_is_unicode_letter (ecma_char_t c) /**< code unit */
{ {
return true; return true;
} }
else if (c <= LIT_UTF8_1_BYTE_CODE_POINT_MAX)
{
return false;
}
/* Lu */ /* Lu */
#define LIT_UNICODE_RANGE_LU(range_begin, range_end) \ #define LIT_UNICODE_RANGE_LU(range_begin, range_end) \