| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index a6a41650c9a18fd86e52e4df58df4ad8602e3c76..8fe765d9e2a9b785fa300a4695d5f01fa3288ac8 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1886,7 +1886,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->SetPrototype(prototype);
|
| + Map::SetPrototype(map, prototype);
|
|
|
| // Allocate the proxy object.
|
| Handle<JSProxy> result = New<JSProxy>(map, NEW_SPACE);
|
| @@ -1905,7 +1905,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->SetPrototype(prototype);
|
| + Map::SetPrototype(map, prototype);
|
|
|
| // Allocate the proxy object.
|
| Handle<JSFunctionProxy> result = New<JSFunctionProxy>(map, NEW_SPACE);
|
| @@ -1930,7 +1930,8 @@ void Factory::ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type,
|
| int size_difference = proxy->map()->instance_size() - map->instance_size();
|
| DCHECK(size_difference >= 0);
|
|
|
| - map->SetPrototype(handle(proxy->map()->prototype(), proxy->GetIsolate()));
|
| + Handle<Object> prototype(proxy->map()->prototype(), isolate());
|
| + Map::SetPrototype(map, prototype);
|
|
|
| // Allocate the backing storage for the properties.
|
| int prop_size = map->InitialPropertiesLength();
|
|
|