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

Unified Diff: src/jsregexp.h

Issue 11319: * Add support for positive lookahead assertions and negative... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
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
Index: src/jsregexp.h
===================================================================
--- src/jsregexp.h (revision 799)
+++ src/jsregexp.h (working copy)
@@ -543,18 +543,18 @@
STORE_REGISTER,
INCREMENT_REGISTER,
STORE_POSITION,
+ SAVE_POSITION,
RESTORE_POSITION,
BEGIN_SUBMATCH,
- ESCAPE_SUBMATCH,
- END_SUBMATCH
+ ESCAPE_SUBMATCH
};
static ActionNode* StoreRegister(int reg, int val, RegExpNode* on_success);
static ActionNode* IncrementRegister(int reg, RegExpNode* on_success);
static ActionNode* StorePosition(int reg, RegExpNode* on_success);
+ static ActionNode* SavePosition(int reg, RegExpNode* on_success);
static ActionNode* RestorePosition(int reg, RegExpNode* on_success);
- static ActionNode* BeginSubmatch(RegExpNode* on_success);
- static ActionNode* EscapeSubmatch(RegExpNode* on_success);
- static ActionNode* EndSubmatch(RegExpNode* on_success);
+ static ActionNode* BeginSubmatch(int reg, RegExpNode* on_success);
+ static ActionNode* EscapeSubmatch(int reg, RegExpNode* on_success);
virtual void Accept(NodeVisitor* visitor);
virtual bool Emit(RegExpCompiler* compiler);
virtual RegExpNode* PropagateInterest(NodeInfo* info);
@@ -570,6 +570,9 @@
struct {
int reg;
} u_position_register;
+ struct {
+ int reg;
+ } u_submatch_stack_pointer_register;
} data_;
ActionNode(Type type, RegExpNode* on_success)
: SeqRegExpNode(on_success),

Powered by Google App Engine
This is Rietveld 408576698