From: ricow@chromium.org Date: Wed, 28 Sep 2011 16:10:17 +0000 (+0000) Subject: Fix use of non-gc safe pointer in regexp code. X-Git-Tag: upstream/4.7.83~18327 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90b1e5092314feb0b12f2916c20607a4abd3d0f0;p=platform%2Fupstream%2Fv8.git Fix use of non-gc safe pointer in regexp code. Review URL: http://codereview.chromium.org/8034002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9474 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/runtime.cc b/src/runtime.cc index 5afaf2f..cfa0553 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -2953,7 +2953,7 @@ MUST_USE_RESULT static MaybeObject* StringReplaceRegExpWithString( // 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()) {