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

Unified Diff: regexp2000/src/jsregexp.h

Issue 9110: Experimental: Fixed bug in RegExp Parser. Added feature counting in parser. (Closed)
Patch Set: Merged changes to tip of experimental branch. 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 | « regexp2000/src/ast.h ('k') | regexp2000/src/jsregexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: regexp2000/src/jsregexp.h
diff --git a/regexp2000/src/jsregexp.h b/regexp2000/src/jsregexp.h
index 81a24c44793dc7fea8cca48eeb1abdd7ac2a58a9..331a84d894d2f41400cc946f11179ebbd210df61 100644
--- a/regexp2000/src/jsregexp.h
+++ b/regexp2000/src/jsregexp.h
@@ -73,7 +73,8 @@ class RegExpImpl {
static Handle<Object> AtomCompile(Handle<JSRegExp> re,
Handle<String> pattern,
- JSRegExp::Flags flags);
+ JSRegExp::Flags flags,
+ Handle<String> match_pattern);
static Handle<Object> AtomExec(Handle<JSRegExp> regexp,
Handle<String> subject,
Handle<Object> index);
@@ -301,9 +302,12 @@ class DispatchTable {
static const uc16 kNoKey;
static const Entry kNoValue;
static inline int Compare(uc16 a, uc16 b) {
- if (a == b) return 0;
- else if (a < b) return -1;
- else return 1;
+ if (a == b)
+ return 0;
+ else if (a < b)
+ return -1;
+ else
+ return 1;
}
};
void AddRange(CharacterRange range, int value);
« no previous file with comments | « regexp2000/src/ast.h ('k') | regexp2000/src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698