| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 5c1e9aa653684776f9a1cf4d307b941f8dbacc35..8055ffa4206b5f99a9b9824d9cede0a17ffdd9d8 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -4654,28 +4654,6 @@ Maybe<PropertyAttributes> JSProxy::GetPropertyAttributesWithHandler(
|
| }
|
|
|
|
|
| -void JSProxy::Fix(Handle<JSProxy> proxy) {
|
| - Isolate* isolate = proxy->GetIsolate();
|
| -
|
| - // Save identity hash.
|
| - Handle<Object> hash(proxy->GetIdentityHash(), isolate);
|
| -
|
| - if (proxy->IsJSFunctionProxy()) {
|
| - isolate->factory()->BecomeJSFunction(proxy);
|
| - // Code will be set on the JavaScript side.
|
| - } else {
|
| - isolate->factory()->BecomeJSObject(proxy);
|
| - }
|
| - DCHECK(proxy->IsJSObject());
|
| -
|
| - // Inherit identity, if it was present.
|
| - if (hash->IsSmi()) {
|
| - JSObject::SetIdentityHash(Handle<JSObject>::cast(proxy),
|
| - Handle<Smi>::cast(hash));
|
| - }
|
| -}
|
| -
|
| -
|
| MaybeHandle<Object> JSProxy::CallTrap(Handle<JSProxy> proxy,
|
| const char* name,
|
| Handle<Object> derived,
|
| @@ -8421,25 +8399,6 @@ Handle<Map> Map::CopyForPreventExtensions(Handle<Map> map,
|
| }
|
|
|
|
|
| -Handle<Map> Map::FixProxy(Handle<Map> map, InstanceType type, int size) {
|
| - DCHECK(type == JS_OBJECT_TYPE || type == JS_FUNCTION_TYPE);
|
| - DCHECK(map->IsJSProxyMap());
|
| -
|
| - Isolate* isolate = map->GetIsolate();
|
| -
|
| - // Allocate fresh map.
|
| - // TODO(rossberg): Once we optimize proxies, cache these maps.
|
| - Handle<Map> new_map = isolate->factory()->NewMap(type, size);
|
| -
|
| - Handle<Object> prototype(map->prototype(), isolate);
|
| - Map::SetPrototype(new_map, prototype);
|
| -
|
| - map->NotifyLeafMapLayoutChange();
|
| -
|
| - return new_map;
|
| -}
|
| -
|
| -
|
| bool DescriptorArray::CanHoldValue(int descriptor, Object* value) {
|
| PropertyDetails details = GetDetails(descriptor);
|
| switch (details.type()) {
|
|
|