Reviewers: Jakob,
Message:
PTAL
Description:
Fix visitor for generators
BUG=
Please review this at https://codereview.chromium.org/589513005/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -0 lines):
M src/bootstrapper.cc
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index
5abd954972aa610d3e8fca32a9c473249bb7c412..65b21e09bc5fbe43a5029c05894238ee20aaf97d
100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1176,6 +1176,8 @@ void Genesis::InitializeGlobal(Handle<GlobalObject>
global_object,
JSGeneratorObject::kResultPropertyCount);
iterator_result_map->set_pre_allocated_property_fields(
JSGeneratorObject::kResultPropertyCount);
+ iterator_result_map->set_visitor_id(
+ StaticVisitorBase::GetVisitorId(*iterator_result_map));
DCHECK_EQ(JSGeneratorObject::kResultSize,
iterator_result_map->instance_size());
native_context()->set_iterator_result_map(*iterator_result_map);
--
--
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.