Revert svn r4269 and r4298.

The C++ implementation of String.prototype.replace triggers an assert
in debug builds.

See http://code.google.com/p/v8/issues/detail?id=667

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

git-svn-id: http://v8.googlecode.com/svn/trunk@4315 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
10 files changed