|
[regexp] Port RegExp.prototype[@@replace]
This moves the implementation of @@replace from regexp.js to builtins-regexp.cc
(the TurboFan fast path) and runtime-regexp.cc (slow path). The fast path
handles all cases in which the regexp itself is an unmodified JSRegExp
instance, the given 'replace' argument is not callable and does not contain any
'$' characters (i.e. we are doing a string replacement).
BUG= v8:5339
Committed: https://crrev.com/33a4faa47d664328464cb11597ac36d07051d7dd
Cr-Commit-Position: refs/heads/master@{#40253}
Total comments: 10
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1224 lines, -413 lines) |
Patch |
|
M |
src/bootstrapper.cc
|
View
|
1
2
3
|
3 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
|
M |
src/builtins/builtins.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/builtins/builtins-regexp.cc
|
View
|
1
2
3
4
5
6
|
9 chunks |
+236 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/code-stub-assembler.h
|
View
|
1
2
3
|
3 chunks |
+33 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/code-stub-assembler.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+183 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/contexts.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/js/prologue.js
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/js/regexp.js
|
View
|
1
2
3
|
5 chunks |
+0 lines, -356 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
2
3
|
1 chunk |
+95 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/runtime/runtime-regexp.cc
|
View
|
1
2
3
4
|
10 chunks |
+635 lines, -31 lines |
0 comments
|
Download
|
|
M |
src/string-builder.h
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CallRuntime.golden
|
View
|
1
2
3
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/regexp.js
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
Total messages: 36 (27 generated)
|