| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 218d3b9625880164cc77add838d537432871f628..1a8cfd937f53002a4e6719056d07db61b1938aa8 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1877,7 +1877,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);
|
| @@ -1896,7 +1896,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);
|
| @@ -1921,7 +1921,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();
|
|
|