Optimize calls to get_class($obj) when we know the exact type of $obj.
commit0dc6a7e3e7dc1e17b60c06e0492e70eb4fb016c9
authorAlex Malyshev <alexanderm@fb.com>
Tue, 17 Jun 2014 22:46:21 +0000 (17 15:46 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Thu, 24 Jul 2014 22:00:22 +0000 (24 15:00 -0700)
tree4126a2f209c0dfae6f01167fc451b118a27bea0c
parent5fdf8c3748ac42caced022cc1edefc03758ffe91
Optimize calls to get_class($obj) when we know the exact type of $obj.

Summary: Also optimizes get_class(), which is just a non-fataling self::class.

Reviewed By: @elgenie

Differential Revision: D1389240
hphp/runtime/vm/jit/hhbc-translator.cpp
hphp/runtime/vm/jit/hhbc-translator.h