Better type resolution
commit3759a0fa2e2f195e97219aeff4b7f9094eebd895
authorMark Williams <mwilliams@fb.com>
Wed, 19 Apr 2017 21:57:03 +0000 (19 14:57 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 19 Apr 2017 22:07:00 +0000 (19 15:07 -0700)
tree393a7b4b64278adfab54772c7fea4e17e518a1f0
parent46332d87bc4ead637ecd327949c40a0aff9729cf
Better type resolution

Summary:
We can do a better job of resolving the context class than looking it
up by name. This won't do much in practice, because we don't have
non-unique classes in our code base; but its cleaner, and more efficient.

We didn't resolve self and parent at all for type constraints, so fix
that, and also improve the handling of special interfaces.

Reviewed By: ricklavoie

Differential Revision: D4911712

fbshipit-source-id: d43adfbb12631adf0eaf9d28d14624672abce235
hphp/hhbbc/index.cpp
hphp/hhbbc/index.h
hphp/hhbbc/interp-internal.h
hphp/hhbbc/interp.cpp