Reviewers: rossberg, Jakob,
Message:
Committed patchset #1 manually as r21365 (tree was closed).
Description:
Fix GCMole warning when creating generator arguments poison pill
[email protected]
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=21365
Please review this at https://codereview.chromium.org/289323005/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+3, -2 lines):
M src/bootstrapper.cc
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index
fea7ac16fa1b6a9719233968039185006856ca09..2a41355c67231f37335d9dea138b31fa716e6162
100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1392,8 +1392,9 @@ void Genesis::InitializeExperimentalGlobal() {
Handle<AccessorPair> poison_pair(factory()->NewAccessorPair());
PropertyAttributes rw_attribs =
static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE);
- poison_pair->set_getter(*GetGeneratorPoisonFunction());
- poison_pair->set_setter(*GetGeneratorPoisonFunction());
+ Handle<JSFunction> 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(),
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.