diff options
Diffstat (limited to 'deps/v8/src/ic/ic-inl.h')
-rw-r--r-- | deps/v8/src/ic/ic-inl.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/v8/src/ic/ic-inl.h b/deps/v8/src/ic/ic-inl.h index 640bf7250c..101703dc28 100644 --- a/deps/v8/src/ic/ic-inl.h +++ b/deps/v8/src/ic/ic-inl.h @@ -50,11 +50,10 @@ void IC::update_receiver_map(Handle<Object> receiver) { bool IC::IsHandler(MaybeObject* object) { HeapObject* heap_object; return (object->IsSmi() && (object != nullptr)) || - (object->ToWeakHeapObject(&heap_object) && + (object->GetHeapObjectIfWeak(&heap_object) && (heap_object->IsMap() || heap_object->IsPropertyCell())) || - (object->ToStrongHeapObject(&heap_object) && - (heap_object->IsDataHandler() || - heap_object->IsCode())); + (object->GetHeapObjectIfStrong(&heap_object) && + (heap_object->IsDataHandler() || heap_object->IsCode())); } bool IC::AddressIsDeoptimizedCode() const { |