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

Unified Diff: regexp2000/src/objects.h

Issue 8765: * Use new RegExp parser. (Closed)
Patch Set: Use new RegExp parser. Created 12 years, 2 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 | « regexp2000/src/jsregexp.cc ('k') | regexp2000/src/objects-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: regexp2000/src/objects.h
diff --git a/regexp2000/src/objects.h b/regexp2000/src/objects.h
index f2f9e185eea8d0c5fa73f9107e9f969c9f3a9d0e..d5a3284d3719a40e4f4eec99c8b46ad27fecac5c 100644
--- a/regexp2000/src/objects.h
+++ b/regexp2000/src/objects.h
@@ -2915,6 +2915,10 @@ class JSValue: public JSObject {
// Regular expressions
class JSRegExp: public JSObject {
public:
+ // Meaning of Type:
+ // NOT_COMPILED: Initial value. No data has been stored in the JSRegExp yet.
+ // JSCRE: A complex RegExp for JSCRE
+ // ATOM: A simple string to match against using an indexOf operation.
enum Type { NOT_COMPILED, JSCRE, ATOM };
enum Flag { NONE = 0, GLOBAL = 1, IGNORE_CASE = 2, MULTILINE = 4 };
@@ -2932,6 +2936,8 @@ class JSRegExp: public JSObject {
DECL_ACCESSORS(data, Object)
inline Type TypeTag();
+ inline Flags GetFlags();
+ inline String* Pattern();
inline Object* DataAt(int index);
static inline JSRegExp* cast(Object* obj);
« no previous file with comments | « regexp2000/src/jsregexp.cc ('k') | regexp2000/src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698