| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index ec30d5a0dbd44ae5c9f37d8d2ae7a49986551d2b..3e812d56e30a87449eaab456869c60f9bad2439a 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -2219,12 +2219,11 @@ void Factory::ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> object,
|
| // The proxy's hash should be retained across reinitialization.
|
| Handle<Object> hash(object->hash(), isolate());
|
|
|
| - JSObject::InvalidatePrototypeChains(*old_map);
|
| if (old_map->is_prototype_map()) {
|
| map = Map::Copy(map, "CopyAsPrototypeForJSGlobalProxy");
|
| map->set_is_prototype_map(true);
|
| }
|
| - JSObject::UpdatePrototypeUserRegistration(old_map, map, isolate());
|
| + JSObject::NotifyMapChange(old_map, map, isolate());
|
|
|
| // Check that the already allocated object has the same size and type as
|
| // objects allocated using the constructor.
|
|
|