diff options
Diffstat (limited to 'deps/v8/src/char-predicates.h')
-rw-r--r-- | deps/v8/src/char-predicates.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/deps/v8/src/char-predicates.h b/deps/v8/src/char-predicates.h index f52feda6c1..767ad6513a 100644 --- a/deps/v8/src/char-predicates.h +++ b/deps/v8/src/char-predicates.h @@ -66,27 +66,6 @@ struct IdentifierPart { } }; - -// WhiteSpace according to ECMA-262 5.1, 7.2. -struct WhiteSpace { - static inline bool Is(uc32 c) { - return c == 0x0009 || // <TAB> - c == 0x000B || // <VT> - c == 0x000C || // <FF> - c == 0xFEFF || // <BOM> - // \u0020 and \u00A0 are included in unibrow::WhiteSpace. - unibrow::WhiteSpace::Is(c); - } -}; - - -// WhiteSpace and LineTerminator according to ECMA-262 5.1, 7.2 and 7.3. -struct WhiteSpaceOrLineTerminator { - static inline bool Is(uc32 c) { - return WhiteSpace::Is(c) || unibrow::LineTerminator::Is(c); - } -}; - } } // namespace v8::internal #endif // V8_CHAR_PREDICATES_H_ |