Don't use string slices when processing RexExp replace (re-apply r3153)
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 2 Nov 2009 12:21:43 +0000 (12:21 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 2 Nov 2009 12:21:43 +0000 (12:21 +0000)
commitb4c11d0816897d8bef0e65050749bf91f46ffc9e
treecd2606cbcef4b535d6be78a5f5fd354bf02f346b
parente38cd233c39211c7dbe7044e180e7997b5a8dc6d
Don't use string slices when processing RexExp replace (re-apply r3153)

Re-apply r3153 with a fix for issue 490. Except for the change in line 1756 and the added test this change is identical to http://codereview.chromium.org/342015.

BUG=490
TEST=test/mjsunit/regress/regress-490.js
Review URL: http://codereview.chromium.org/341064

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3197 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
src/string.js
test/mjsunit/regress/regress-490.js [new file with mode: 0644]