You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Let's take a divide & conquer approach to fixing dynamic case collisions by
separating function and type name collisions.
Unfortunately, throughout HHVM we have hardcoded how names of each kind
should be compared by explicitly calling isame(), istrcmp(), etc. A better design
would have been to wrap names in zero-overhead newtype structs so their
operations could be implemented in one place, and C++ type safety could help
us properly juggle multiple name types.
Anyway, this takes a first step; I cloned isame() and istrcmp() into t/fsame() and
t/fstrcmp(), then propagated the split through the codebase. This gives
me a way to segregate logs while also improving type safety in the HHVM code.
Reviewed By: aorenste
Differential Revision: D52598964
fbshipit-source-id: 81600b87c41adba3d07262b570016ab5710d50e1
0 commit comments