Merge 5953 and 5974 to trunk to fix RegExp parsing incompatability.

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

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