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

Unified Diff: src/jsregexp.h

Issue 16410: Some irregexp optimizations around keeping track of when the current characte... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years 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 | « no previous file | src/jsregexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/jsregexp.h
===================================================================
--- src/jsregexp.h (revision 1012)
+++ src/jsregexp.h (working copy)
@@ -1011,7 +1011,8 @@
backtrack_(NULL),
stop_node_(NULL),
loop_label_(NULL),
- characters_preloaded_(0) { }
+ characters_preloaded_(0),
+ bound_checked_up_to_(0) { }
bool Flush(RegExpCompiler* compiler, RegExpNode* successor);
int cp_offset() { return cp_offset_; }
DeferredAction* actions() { return actions_; }
@@ -1020,12 +1021,14 @@
actions_ == NULL &&
cp_offset_ == 0 &&
characters_preloaded_ == 0 &&
+ bound_checked_up_to_ == 0 &&
quick_check_performed_.characters() == 0;
}
Label* backtrack() { return backtrack_; }
Label* loop_label() { return loop_label_; }
RegExpNode* stop_node() { return stop_node_; }
int characters_preloaded() { return characters_preloaded_; }
+ int bound_checked_up_to() { return bound_checked_up_to_; }
QuickCheckDetails* quick_check_performed() { return &quick_check_performed_; }
bool mentions_reg(int reg);
// These set methods and AdvanceVariant should be used only on new
@@ -1040,6 +1043,7 @@
void set_stop_node(RegExpNode* node) { stop_node_ = node; }
void set_loop_label(Label* label) { loop_label_ = label; }
void set_characters_preloaded(int cpre) { characters_preloaded_ = cpre; }
+ void set_bound_checked_up_to(int to) { bound_checked_up_to_ = to; }
void set_quick_check_performed(QuickCheckDetails* d) {
quick_check_performed_ = *d;
}
@@ -1063,6 +1067,7 @@
RegExpNode* stop_node_;
Label* loop_label_;
int characters_preloaded_;
+ int bound_checked_up_to_;
QuickCheckDetails quick_check_performed_;
};
« no previous file with comments | « no previous file | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698