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

Unified Diff: src/ast.cc

Issue 9104: Dispatch tables (Closed)
Patch Set: Created 12 years, 1 month 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/ast.h ('k') | src/checks.h » ('j') | src/jsregexp.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index f93d739d4e13fdf95188dae45b6be960a3819959..748c075c498967245ff827432237eeca30831cfc 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -254,9 +254,7 @@ void* RegExpUnparser::VisitAlternative(RegExpAlternative* that, void* data) {
void RegExpUnparser::VisitCharacterRange(CharacterRange that) {
- if (that.is_character_class()) {
- stream()->Add("&%c", that.from());
- } else if (that.IsSingleton()) {
+ if (that.IsSingleton()) {
stream()->Add("%c", that.from());
} else {
stream()->Add("%c-%c", that.from(), that.to());
« no previous file with comments | « src/ast.h ('k') | src/checks.h » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698