Recompute handler

28 views
Skip to first unread message

pawel.b...@gmail.com

unread,
Feb 8, 2021, 11:25:53 AM2/8/21
to v8-users
I tried searching on the group, v8.dev, search engine... could someone give a short explanation on what recompute handler is (in terms of IC states), when it triggers and how is it different from Premonomorphic state?

In my case it seems to be triggered between Premonomorphic and monomorphic state - and I can't quite understand what that means.

Thanks,
Pawel

Toon Verwaest

unread,
Feb 8, 2021, 11:33:14 AM2/8/21
to v8-users
This is a crutch to ensure we don't go poly/megamorphic in the case some assumptions have changed. We use it when e.g., someone modified the prototype chain of the current receiver. The map of the receiver isn't different from the map that we checked in the inline cache. Something else caused us to miss. The idea is that such changes hopefully happen fairly infrequently (properties are rarely added/deleted from objects on the prototype chain).

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/d0a104dd-00ac-4de7-bcc0-321dfde48cdcn%40googlegroups.com.

pawel.b...@gmail.com

unread,
Feb 8, 2021, 11:59:13 AM2/8/21
to v8-users
Oh ok, I understand, thanks! Is there some (hopefully relatively easy...) way to see what triggered recompute handler?
Reply all
Reply to author
Forward
0 new messages