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

Unified Diff: src/token.cc

Issue 3047038: Added support for ES5's propertyname production. (Closed)
Patch Set: Addressed review comments Created 10 years, 5 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/token.h ('k') | test/mjsunit/object-literal.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/token.cc
diff --git a/src/token.cc b/src/token.cc
index 8cee99bb8b6e504fac9702ccbffb108045438a12..21fa9ee4d74823c95ed630512a246e4abcc34f25 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -53,4 +53,12 @@ int8_t Token::precedence_[NUM_TOKENS] = {
#undef T
+#define KT(a, b, c) 'T',
+#define KK(a, b, c) 'K',
+const char Token::token_type[] = {
+ TOKEN_LIST(KT, KK, IGNORE_TOKEN)
+};
+#undef KT
+#undef KK
+
} } // namespace v8::internal
« no previous file with comments | « src/token.h ('k') | test/mjsunit/object-literal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698