From 3ae6f64b0d9803ea6c727ddf1ab9f2b09dba3925 Mon Sep 17 00:00:00 2001 From: "vitalyr@chromium.org" Date: Fri, 5 Aug 2011 12:31:37 +0000 Subject: [PATCH] Remove TLS load in regexp code. Spotted while reviewing Yang's patch. R=yangguo@chromium.org Review URL: http://codereview.chromium.org/7585005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8846 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/jsregexp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsregexp.cc b/src/jsregexp.cc index bc47df8f23..af644376b5 100644 --- a/src/jsregexp.cc +++ b/src/jsregexp.cc @@ -267,7 +267,7 @@ Handle RegExpImpl::AtomExec(Handle re, seq_sub->ToUC16Vector(), needle->ToUC16Vector(), index))); - if (index == -1) return FACTORY->null_value(); + if (index == -1) return isolate->factory()->null_value(); } ASSERT(last_match_info->HasFastElements());