Reviewers: Yang, Description: Fix use of non-gc safe pointer in regexp code.
Please review this at http://codereview.chromium.org/8034002/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/runtime.cc Index: src/runtime.cc =================================================================== --- src/runtime.cc (revision 9464) +++ src/runtime.cc (working copy) @@ -2953,7 +2953,7 @@ // Shortcut for simple non-regexp global replacements if (is_global && - regexp->TypeTag() == JSRegExp::ATOM && + regexp_handle->TypeTag() == JSRegExp::ATOM && compiled_replacement.simple_hint()) { if (subject_handle->HasOnlyAsciiChars() && replacement_handle->HasOnlyAsciiChars()) { -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
