Commit a496150a authored by sandholm@chromium.org's avatar sandholm@chromium.org

Minor optimization in regexp parse.

Review URL: http://codereview.chromium.org/6014002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6081 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e21d76a0
......@@ -3730,7 +3730,7 @@ RegExpParser::RegExpParser(FlatStringReader* in,
contains_anchor_(false),
is_scanned_for_captures_(false),
failed_(false) {
Advance(1);
Advance();
}
......@@ -3768,8 +3768,8 @@ void RegExpParser::Reset(int pos) {
void RegExpParser::Advance(int dist) {
for (int i = 0; i < dist; i++)
Advance();
next_pos_ += dist - 1;
Advance();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment