From 83576f2363473f324f7e39510cb589bf3a99c22b Mon Sep 17 00:00:00 2001 From: "wingo@igalia.com" Date: Mon, 19 May 2014 12:31:36 +0000 Subject: [PATCH] Fix GCMole warning when creating generator arguments poison pill R=jkummerow@chromium.org TBR=rossberg@chromium.org BUG= Review URL: https://codereview.chromium.org/289323005 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21365 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/bootstrapper.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc index fea7ac1..2a41355 100644 --- a/src/bootstrapper.cc +++ b/src/bootstrapper.cc @@ -1392,8 +1392,9 @@ void Genesis::InitializeExperimentalGlobal() { Handle poison_pair(factory()->NewAccessorPair()); PropertyAttributes rw_attribs = static_cast(DONT_ENUM | DONT_DELETE); - poison_pair->set_getter(*GetGeneratorPoisonFunction()); - poison_pair->set_setter(*GetGeneratorPoisonFunction()); + Handle poison_function = GetGeneratorPoisonFunction(); + poison_pair->set_getter(*poison_function); + poison_pair->set_setter(*poison_function); ReplaceAccessors(generator_function_map, factory()->arguments_string(), rw_attribs, poison_pair); ReplaceAccessors(generator_function_map, factory()->caller_string(), -- 2.7.4