Revision: 9474
Author: [email protected]
Date: Wed Sep 28 09:10:17 2011
Log: Fix use of non-gc safe pointer in regexp code.
Review URL: http://codereview.chromium.org/8034002
http://code.google.com/p/v8/source/detail?r=9474
Modified:
/branches/bleeding_edge/src/runtime.cc
=======================================
--- /branches/bleeding_edge/src/runtime.cc Mon Sep 26 05:09:04 2011
+++ /branches/bleeding_edge/src/runtime.cc Wed Sep 28 09:10:17 2011
@@ -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