Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: src/char-predicates.h

Issue 146983007: Fix inconsistencies wrt whitespaces. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/ia32/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/char-predicates.h
diff --git a/src/char-predicates.h b/src/char-predicates.h
index 767ad6513afa7e3d5995a31a1df22372bf7a9484..743693157f1f76033942e10b40ac9c6eb3b59223 100644
--- a/src/char-predicates.h
+++ b/src/char-predicates.h
@@ -66,6 +66,14 @@ struct IdentifierPart {
}
};
+
+struct WhiteSpace {
+ static inline bool Is(uc32 c) {
+ return unibrow::WhiteSpace::Is(c) ||
+ c == 0xFEFF; // BYTE ORDER MARK is a white space in ECMA-262 5.1, 7.2.
+ }
+};
+
} } // namespace v8::internal
#endif // V8_CHAR_PREDICATES_H_
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/ia32/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698