diff options
Diffstat (limited to 'deps/v8/src/ic/ic-inl.h')
-rw-r--r-- | deps/v8/src/ic/ic-inl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/ic/ic-inl.h b/deps/v8/src/ic/ic-inl.h index 7c95f2fcf05..640bf7250c2 100644 --- a/deps/v8/src/ic/ic-inl.h +++ b/deps/v8/src/ic/ic-inl.h @@ -39,6 +39,14 @@ Address IC::raw_constant_pool() const { } } +void IC::update_receiver_map(Handle<Object> receiver) { + if (receiver->IsSmi()) { + receiver_map_ = isolate_->factory()->heap_number_map(); + } else { + receiver_map_ = handle(HeapObject::cast(*receiver)->map(), isolate_); + } +} + bool IC::IsHandler(MaybeObject* object) { HeapObject* heap_object; return (object->IsSmi() && (object != nullptr)) || |