|
Irregexp:
* Facility for generating a node several ways. This allows
code to be generated for a node knowing where it is trying
to match relative to the 'current position' and it allows
code to be generated that knows where to backtrack to. Both
allow dramatic reductions in the amount of popping and pushing
on the stack and the number of indirect jumps.
* Generate special backtracking for greedy quantifiers on
constant-length atoms. This allows .* to run in constant
space relative to input string size.
* When we are checking a long sequence of characters or character
classes in the input then we do them right to left and only the
first (rightmost) needs to check for end-of-string.
* Record the pattern in the profile instead of just <CompiledRegExp>
* Nodes no longer contain an on_failure_ node. This was only used
for lookaheads and they are now handled with a choice node instead.
Committed: http://code.google.com/p/v8/source/detail?r=930
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1223 lines, -536 lines) |
Patch |
|
M |
src/ast.h
|
View
|
1
|
12 chunks |
+14 lines, -28 lines |
0 comments
|
Download
|
|
M |
src/bytecodes-irregexp.h
|
View
|
1
|
1 chunk |
+18 lines, -16 lines |
0 comments
|
Download
|
|
M |
src/interpreter-irregexp.cc
|
View
|
1
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/jsregexp.h
|
View
|
1
|
16 chunks |
+179 lines, -54 lines |
1 comment
|
Download
|
|
M |
src/jsregexp.cc
|
View
|
1
|
44 chunks |
+809 lines, -314 lines |
5 comments
|
Download
|
|
M |
src/jsregexp-inl.h
|
View
|
1
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/regexp-macro-assembler.h
|
View
|
1
|
4 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/regexp-macro-assembler-ia32.h
|
View
|
1
|
4 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/regexp-macro-assembler-ia32.cc
|
View
|
1
|
8 chunks |
+27 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/regexp-macro-assembler-irregexp.h
|
View
|
1
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/regexp-macro-assembler-irregexp.cc
|
View
|
1
|
7 chunks |
+30 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/regexp-macro-assembler-tracer.h
|
View
|
1
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/regexp-macro-assembler-tracer.cc
|
View
|
1
|
5 chunks |
+29 lines, -18 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-regexp.cc
|
View
|
1
|
19 chunks |
+51 lines, -42 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regexp.js
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|