| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 1f6dedc022f45e6a8a7d59da729f309d9a159e45..757f4fffc234883317b27de26a3836d19a11b3ae 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1878,7 +1878,7 @@ Handle<JSProxy> Factory::NewJSProxy(Handle<Object> handler,
|
| // TODO(rossberg): Once we optimize proxies, think about a scheme to share
|
| // maps. Will probably depend on the identity of the handler object, too.
|
| Handle<Map> map = NewMap(JS_PROXY_TYPE, JSProxy::kSize);
|
| - map->set_prototype(*prototype);
|
| + map->SetPrototype(prototype);
|
|
|
| // Allocate the proxy object.
|
| Handle<JSProxy> result = New<JSProxy>(map, NEW_SPACE);
|
| @@ -1897,7 +1897,7 @@ Handle<JSProxy> Factory::NewJSFunctionProxy(Handle<Object> handler,
|
| // TODO(rossberg): Once we optimize proxies, think about a scheme to share
|
| // maps. Will probably depend on the identity of the handler object, too.
|
| Handle<Map> map = NewMap(JS_FUNCTION_PROXY_TYPE, JSFunctionProxy::kSize);
|
| - map->set_prototype(*prototype);
|
| + map->SetPrototype(prototype);
|
|
|
| // Allocate the proxy object.
|
| Handle<JSFunctionProxy> result = New<JSFunctionProxy>(map, NEW_SPACE);
|
| @@ -1922,7 +1922,7 @@ void Factory::ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type,
|
| int size_difference = proxy->map()->instance_size() - map->instance_size();
|
| DCHECK(size_difference >= 0);
|
|
|
| - map->set_prototype(proxy->map()->prototype());
|
| + map->SetPrototype(handle(proxy->map()->prototype(), proxy->GetIsolate()));
|
|
|
| // Allocate the backing storage for the properties.
|
| int prop_size = map->InitialPropertiesLength();
|
|
|