| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 2937cec0b133378446822599fdb7b2145963ba38..30bdbb0d4857098c8da9e9060e77c7114ff00706 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -3676,7 +3676,7 @@ void JSProxy::Fix() {
|
| Object* hash;
|
| if (maybe_hash->To<Object>(&hash) && hash->IsSmi()) {
|
| Handle<JSObject> new_self(JSObject::cast(*self));
|
| - isolate->factory()->SetIdentityHash(new_self, Smi::cast(hash));
|
| + JSObject::SetIdentityHash(new_self, Smi::cast(hash));
|
| }
|
| }
|
|
|
| @@ -4719,17 +4719,16 @@ Smi* JSReceiver::GenerateIdentityHash() {
|
| }
|
|
|
|
|
| -MaybeObject* JSObject::SetIdentityHash(Smi* hash, CreationFlag flag) {
|
| - MaybeObject* maybe = SetHiddenProperty(GetHeap()->identity_hash_string(),
|
| - hash);
|
| - if (maybe->IsFailure()) return maybe;
|
| - return this;
|
| +void JSObject::SetIdentityHash(Handle<JSObject> object, Smi* hash) {
|
| + CALL_HEAP_FUNCTION_VOID(object->GetIsolate(),
|
| + object->SetHiddenProperty(
|
| + object->GetHeap()->identity_hash_string(), hash));
|
| }
|
|
|
|
|
| -int JSObject::GetIdentityHash(Handle<JSObject> obj) {
|
| - CALL_AND_RETRY_OR_DIE(obj->GetIsolate(),
|
| - obj->GetIdentityHash(ALLOW_CREATION),
|
| +int JSObject::GetIdentityHash(Handle<JSObject> object) {
|
| + CALL_AND_RETRY_OR_DIE(object->GetIsolate(),
|
| + object->GetIdentityHash(ALLOW_CREATION),
|
| return Smi::cast(__object__)->value(),
|
| return 0);
|
| }
|
|
|