Index: src/char-predicates-inl.h |
diff --git a/src/char-predicates-inl.h b/src/char-predicates-inl.h |
index 71d1b06a9213504a495056e6e008b425c4888931..d90f919341f6c25223b6d72ba1eb548c49a9ae78 100644 |
--- a/src/char-predicates-inl.h |
+++ b/src/char-predicates-inl.h |
@@ -35,6 +35,13 @@ inline bool IsInRange(int value, int lower_limit, int higher_limit) { |
static_cast<unsigned int>(higher_limit - lower_limit); |
} |
+inline bool IsAsciiIdentifier(uc32 c) { |
+ return IsAlphaNumeric(c) || c == '$' || c == '_'; |
+} |
+ |
+inline bool IsAlphaNumeric(uc32 c) { |
+ return IsInRange(AsciiAlphaToLower(c), 'a', 'z') || IsDecimalDigit(c); |
+} |
inline bool IsDecimalDigit(uc32 c) { |
// ECMA-262, 3rd, 7.8.3 (p 16) |